VariableNode

stores a variable

Constructors

this
this(string name)

constructor

Members

Variables

id
uinteger id;

the ID of the variable. This is assigned in the ASTCheck stage, not in ASTGen

isLiteral
bool isLiteral;

true if its return value is static, i.e, will always return same value when executed

lineno
uinteger lineno;

the line number (starts from 1) from which this node begins, or ends

returnType
DataType returnType;

stores the return type. Only stored after ASTCheck has checked it

varName
string varName;

the name of this var

Meta