VarDeclareNode

to store var declaration

Constructors

this
this(string[] vars)

constructor

Members

Functions

addVar
void addVar(string varName)

adds a variable to the list

addVar
void addVar(string varName, CodeNode value)

adds a variable to the list, along with it's assigned value

getValue
CodeNode getValue(string varName)
hasValue
bool hasValue(string varName)
setVarID
void setVarID(string varName, uinteger id)

sets a stored var's ID

setVarValue
void setVarValue(string varName, CodeNode value)

sets a stored var's assigned value

Properties

varIDs
uinteger[string] varIDs [@property getter]
vars
string[] vars [@property getter]

Variables

lineno
uinteger lineno;

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

type
DataType type;

the data typre of defined vars

visibility
Visibility visibility;

Stores visibility for this node

Meta