CodeNode

a node to represent code that evaluates to some data.

This node can contain: 1. Function call - to only those functions that return some data 2. Literals 3. Operators 4. Variables 5. Arrays (Literal, or with variable elements)

Constructors

this
this(T newNode)

constructor

Members

Enums

Type
enum Type

enum defining the possible types this node can store

Properties

isLiteral
bool isLiteral [@property getter]
lineno
uinteger lineno [@property getter]
uinteger lineno [@property setter]
node
T node [@property setter]

sets the stored node

node
auto ref node [@property getter]

returns the stored type

returnType
DataType returnType [@property getter]
DataType returnType [@property setter]

the return type, only available after ASTCheck has checked it

type
CodeNode.Type type [@property getter]

returns the type of the stored type

Meta