Show / Hide Table of Contents

Class IrIf

Represents an if statement in the IR.

Inheritance
object
IrNode
IrIf
Inherited Members
IrNode.Line
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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>
In this article
Back to top Generated by DocFX