FunctionNode

a node representing a function definition

Constructors

this
this(DataType returnDataType, string fName, FunctionNode.Argument[] funcArgs, BlockNode fBody)

constructor

Members

Properties

argTypes
DataType[] argTypes [@property getter]
argumentNames
string[] argumentNames [@property getter]
argumentTypes
DataType[] argumentTypes [@property getter]

Structs

Argument
struct Argument

struct to store arguments for function

Variables

arguments
FunctionNode.Argument[] arguments;

stores arguments with their data type

bodyBlock
BlockNode bodyBlock;

body block of this function

id
uinteger id;

the id of this function, assigned after checkAST has been called on this

lineno
uinteger lineno;

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

name
string name;

the name of the function

returnType
DataType returnType;

the data type of the return value of this function

varStackCount
uinteger varStackCount;

number of elements to allocate on stack for variables, this is set by ASTCheck

visibility
Visibility visibility;

Stores visibility for this node

Meta