Class IfNode
- Namespace
- EzrSquared.Runtime.Nodes
- Assembly
- ezrSquared-lib.dll
The Node structure for an if expression.
public record IfNode : Node
- Inheritance
-
objectIfNode
- Inherited Members
Constructors
IfNode(IReadOnlyCollection<(Node Condition, Node Body)>, Node?, Position, Position)
The Node structure for an if expression.
public IfNode(IReadOnlyCollection<(Node Condition, Node Body)> Cases, Node? ElseCase, Position StartPosition, Position EndPosition)
Parameters
Cases
IReadOnlyCollection<(Node Key, Node Value)>The cases of the if expression.
ElseCase
NodeThe body of the else case.
StartPosition
PositionEndPosition
Position
Properties
Cases
The cases of the if expression.
public IReadOnlyCollection<(Node Condition, Node Body)> Cases { get; init; }
Property Value
ElseCase
The body of the else case.
public Node? ElseCase { get; init; }