IfNode

to store if statements

Constructors

this
this(CodeNode conditionNode, StatementNode statementToExecute, StatementNode elseStatementToExec)

constructor

this
this(CodeNode conditionNode, StatementNode statementsToExecute)

constructor

Members

Properties

elseStatement
StatementNode elseStatement [@property getter]

returns the statement to execute, if false

elseStatement
StatementNode elseStatement [@property setter]

sets the statement to execute, if true

statement
StatementNode statement [@property getter]

returns the statement to execute, if true

statement
StatementNode statement [@property setter]

sets the statement to execute, if true

Variables

condition
CodeNode condition;

the condition for this if statement

hasElse
bool hasElse;

stores whether this if has an else statement too

lineno
uinteger lineno;

the line number (starts from 1) from which this node begins, or ends

Meta