Class IrIf
Represents an if statement.
public class IrIf : IrStatement
- Inheritance
-
IrIf
- Inherited Members
Constructors
IrIf(IrExpression, IrBlock, IrBlock?)
Initializes a new instance of IrIf with the specified condition and blocks.
public IrIf(IrExpression condition, IrBlock thenBlock, IrBlock? elseBlock = null)
Parameters
conditionIrExpressionthenBlockIrBlockelseBlockIrBlock
Properties
Condition
Gets the condition expression.
public IrExpression Condition { get; }
Property Value
ElseBlock
Gets the optional block executed when the condition is false.
public IrBlock? ElseBlock { get; }
Property Value
Kind
Gets the IR node kind for this statement.
public override IrNodeKind Kind { get; }
Property Value
ThenBlock
Gets the block executed when the condition is true.
public IrBlock ThenBlock { get; }