GrVariable

A local or global variable.

Members

Variables

fileId
uint fileId;

The file where the variable is declared.

isAuto
bool isAuto;

Is the type to be infered automatically ? (e.g. the let keyword).

isConstant
bool isConstant;

Can we modify its value ?

isField
bool isField;

Declared from an object definition ?

isGlobal
bool isGlobal;

Declared from the global scope ?

isInitialized
bool isInitialized;

Does it have a value yet ?

isPublic
bool isPublic;

Is the variable visible from other files ? (Global only)

lexPosition
uint lexPosition;

Position information in case of errors.

name
string name;

Its unique name inside its scope (function based scope).

register
uint register;

Register position, separate for each type (int, float, string and objects);

type
GrType type;

Its type.

Meta