Class IfElseStatement

IfElseStmt represents an if-else statement. elseIfs are represented as additional IfElseStmt instances in the else branch (simmilar to how C works).

Hierarchy (view full)

Implements

Constructors

Properties

elseBranch: null | Statement

The else branch. It can be null if there is no else branch.

tagBackground: boolean = false

Set to true if this module instantation has been tagged with a '%' symbol.

tagDisabled: boolean = false

Set to true if this module instantation has been tagged with a '*' symbol.

tagHighlight: boolean = false

Set to true if this module instantation has been tagged with a '#' symbol.

tagRoot: boolean = false

Set to true if this module instantation has been tagged with a '!' symbol.

thenBranch: Statement
tokens: {
    elseKeyword: null | Token;
    firstParen: Token;
    ifKeyword: Token;
    modifiersInOrder: Token[];
    secondParen: Token;
}

Accessors

Methods