Class IrIf
Represents an if statement in the IR.
Inherited Members
Namespace: VM.Core.IR.Nodes
Assembly: VM.dll
Syntax
public class IrIf : IrNode
Fields
Condition
Gets or sets the condition expression for the if statement.
Declaration
public IrNode? Condition
Field Value
Type | Description |
---|---|
IrNode |
ElseBlock
Gets or sets the optional list of statements in the 'else' block.
Declaration
public List<IrNode>? ElseBlock
Field Value
Type | Description |
---|---|
List<IrNode> |
ThenBlock
Gets the list of statements in the 'then' block.
Declaration
public List<IrNode?> ThenBlock
Field Value
Type | Description |
---|---|
List<IrNode> |