Class IrFunctionDecl
Represents a function declaration in the IR.
Inherited Members
Namespace: VM.Core.IR.Nodes
Assembly: VM.dll
Syntax
public class IrFunctionDecl : IrNode
Fields
Args
Gets the list of parameter names.
Declaration
public List<string> Args
Field Value
Type | Description |
---|---|
List<string> |
Body
Gets the list of statements in the function body.
Declaration
public List<IrNode> Body
Field Value
Type | Description |
---|---|
List<IrNode> |
Name
Gets or sets the name of the function.
Declaration
public required string Name
Field Value
Type | Description |
---|---|
string |
ReturnType
Gets or sets the return type of the function.
Declaration
public string ReturnType
Field Value
Type | Description |
---|---|
string |