VariableNode

stores a variable

Constructors

this
this(string name)

constructor

Members

Properties

isScriptDefined
deprecated bool isScriptDefined [@property getter]

if the variable is script defined (global or not), assigned after checkAST has been called on this

Variables

id
integer id;

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

isGlobal
bool isGlobal;

stores if this is a global variable. Only valid valid after ASTCheck has been called on this.

isLiteral
bool isLiteral;

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

libraryId
integer libraryId;

the library ID where this is defined

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