GenExpr¶
Import: import system.codegen;
GenExpr¶
An expression 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 expression (call, literal, binary operation, ...).
statement_kind¶
Category of the containing statement.
span¶
Source range occupied by this node.
constant¶
Constant value of the expression, when known.
text¶
Source text of the expression as written.
op¶
Operator spelling used by the expression.
literal¶
Source spelling of the literal.
literal_kind¶
Category of the literal, such as a number or string.
ty¶
Type of this declaration or expression.
symbol¶
Identifier of the referenced symbol.
symbol_kind¶
Category 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 GenExpr from its object in the generation snapshot.
children¶
Returns child nodes in source order.
is_kind¶
Tests the node kind.