Class IrFor
Represents a for loop in the IR.
Inherited Members
Namespace: VM.Core.IR.Nodes
Assembly: VM.dll
Syntax
public class IrFor : IrNode
Fields
Body
Gets the list of statements in the loop body.
Declaration
public List<IrNode?> Body
Field Value
Type | Description |
---|---|
List<IrNode> |
From
Gets or sets the expression specifying the starting value.
Declaration
public IrNode? From
Field Value
Type | Description |
---|---|
IrNode |
Step
Gets or sets the optional expression specifying the step value.
Declaration
public IrNode? Step
Field Value
Type | Description |
---|---|
IrNode |
To
Gets or sets the expression specifying the ending value.
Declaration
public IrNode? To
Field Value
Type | Description |
---|---|
IrNode |
VarName
Gets or sets the name of the loop variable.
Declaration
public string VarName
Field Value
Type | Description |
---|---|
string |