Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • The constructor for conditionals (if, else if, and else statements)

    Parameters

    • cond: Parens<any>

      The condition of the statement

    • trueBranch: Expression<any>

      The branch to follow if the condition evaluates to true, stored inside a BodyNode

    • Default value preIfWS: string = ""

      Preceding if whitespace

    • Default value falseBranch_: BodyNode | Conditional = null
    • Default value preElseWS: string = ""

      Preceding else whitespace

    Returns Conditional

Properties

Private cond

cond: Parens<any>

The condition of the statement

Private falseBranch_

falseBranch_: BodyNode | Conditional

Private preElseWS

preElseWS: string

Preceding else whitespace

Private preIfWS

preIfWS: string

Preceding if whitespace

Private trueBranch

trueBranch: Expression<any>

The branch to follow if the condition evaluates to true, stored inside a BodyNode

Accessors

falseBranch

ws

  • get ws(): string
  • set ws(ws: string): void

Methods

equals

eval

  • eval(scope: Scope): any

toString

  • toString(): string

Generated using TypeDoc