Package iota
Class IStatementExpression
java.lang.Object
iota.IAST
iota.IStatement
iota.IStatementExpression
The AST node for an expression that appears as a statement. Only the expressions that have a side effect are valid
statement expressions.
-
Field Summary
FieldsFields inherited from class iota.IAST
compilationUnit, line
-
Constructor Summary
ConstructorsConstructorDescriptionIStatementExpression
(int line, IExpression expr) Constructs an AST node for a statement expression. -
Method Summary
Modifier and TypeMethodDescriptionPerforms second phase of semantic analysis on this AST and returns the (possibly modified) AST.void
Performs code generation for this AST.void
toJSON
(JSONElement json) Stores information about this AST in JSON format.Methods inherited from class iota.IAST
line, preAnalyze
-
Field Details
-
expr
The expression.
-
-
Constructor Details
-
IStatementExpression
Constructs an AST node for a statement expression.- Parameters:
line
- line in which the expression occurs in the source file.expr
- the expression.
-
-
Method Details
-
analyze
Performs second phase of semantic analysis on this AST and returns the (possibly modified) AST. -
codegen
Performs code generation for this AST. -
toJSON
Stores information about this AST in JSON format.
-