Interface: IfStatementSemantics
compiler.IfStatementSemantics
Semantics for AST Node IfStatement.
Since
0.9.0
Hierarchy
-
↳
IfStatementSemantics
Table of contents
Properties
Properties
condition
• condition: Expression
<ExpressionSemantics
, ExpressionTypeSemantics
, CompilableASTNode
<SemanticData
, TypeData
>>
The condition of the if-statement.
Since
0.9.0
Defined in
kipper/core/src/compiler/ast/nodes/statements/if-statement/if-statement-semantics.ts:19
elseBranch
• Optional
elseBranch: Statement
<StatementSemantics
, StatementTypeSemantics
> | IfStatement
The alternative (optional) branch of the if-statement. This alternative branch can either be:
- An else branch, if the type is a regular Statement (the statement that should be evaluated in the else branch).
- An else-if branch, if the type is another IfStatement.
- Nothing (undefined), if it wasn't specified and the if statement does not have any more branches.
Since
0.9.0
Defined in
kipper/core/src/compiler/ast/nodes/statements/if-statement/if-statement-semantics.ts:33
ifBranch
• ifBranch: Statement
<StatementSemantics
, StatementTypeSemantics
>
The body of the if-statement.
Since
0.9.0
Defined in
kipper/core/src/compiler/ast/nodes/statements/if-statement/if-statement-semantics.ts:24