GenStmt¶
Import: import system.codegen;
GenStmt¶
A statement that a source generator can inspect.
id¶
Identity of this model node; pass it to GenContext.error_at to report a diagnostic here.
kind¶
Syntactic shape of the statement (let, return, if, ...).
span¶
Source range occupied by this node.
constant¶
Constant value of the expression, when known.
text¶
Source text of the statement as written.
ty¶
Type of the value the statement produces, or Unknown when it has none.
symbol¶
Identifier of the referenced symbol.
overload¶
Identifier distinguishing this function's overload.
type_args¶
Concrete type arguments, in parameter order.
types¶
Type references associated with this expression.
constructor¶
Decodes a GenStmt from its object in the generation snapshot.
children¶
Returns child nodes in source order.
is_kind¶
Tests the node kind.