Table of Contents

Class IfNode

Namespace
EzrSquared.Runtime.Nodes
Assembly
ezrSquared-lib.dll

The Node structure for an if expression.

public record IfNode : Node
Inheritance
object
IfNode
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 Node

The body of the else case.

StartPosition Position

The starting Position of the IfNode.

EndPosition Position

The ending Position of the IfNode.

Properties

Cases

The cases of the if expression.

public IReadOnlyCollection<(Node Condition, Node Body)> Cases { get; init; }

Property Value

IReadOnlyCollection<(Node Key, Node Value)>

ElseCase

The body of the else case.

public Node? ElseCase { get; init; }

Property Value

Node