OperatorNode

stores an operator with two operands

Constructors

this
this(string operatorString, CodeNode a, CodeNode b)

constructor

Members

Properties

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

the return type. Only valid after ASTCheck has checked it

Variables

fCall
FunctionCallNode fCall;

FunctionCallNode corresponding to this OperatorNode. Only valid after ASTCheck

lineno
uinteger lineno;

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

operands
CodeNode[] operands;

operands. [0] = left, [1] = right

operator
string operator;

stores the operator (like '+' ...)

Meta