The specialized constructor for this AST subclass, transforming this particular case to the general one using super.
PRECONDITIONS:
conditionalBlocks.length >=1
Optional
elseBlock: ASTStmtBlockOptional
span: SpanOptional
attributes: OptionsTableGParserPreconditionError
Readonly
attributesTO DO: Complete
Readonly
childrenTO DO: Complete This array may be used for 2 purposes:
Readonly
spanTO DO: Complete
Readonly
tagTO DO: Complete
The getter for the conditionalBlocks property of an ASTStmtIf.
Indicates if the ASTStmtIf has an else block.
Indicates if the ASTStmtIf is a multialternative.
Indicates if the ASTStmtIf is a single alternative, not a multialternative.
Protected
_show
The AST subclass representing alternative statements (if-then, if-then-else, if-then-elseif..., or if-then-elseif...-else).
Consists of one or more conditional statements, the
conditionalBlocks
, and an optionalelseBlock
to use if none of the conditions is true.Notes:
elseBlock
may be undefined, representing the case of an alternative with no else.conditionalBlocks
has length one, and theelseBlock
is present, this subclass represents the standard if-then-else construction, ifconditionalBlocks
has length one, but noelseBlock
is present, it represents the if-then construction, and if theconditionalBlocks
has length more than one, it represents the multialternative construction.PRECONDITIONS:
conditionalBlocks.length >=1