Table of Contents

Class ReturnNode

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

The Node structure for a return statement.

public record ReturnNode : Node
Inheritance
object
ReturnNode
Inherited Members

Constructors

ReturnNode(Node?, bool, Position, Position)

The Node structure for a return statement.

public ReturnNode(Node? Value, bool ReturnLast, Position StartPosition, Position EndPosition)

Parameters

Value Node

The optional value to be returned.

ReturnLast bool

Return the last element of Value, which should be a list or array.

StartPosition Position

The starting Position of the ReturnNode.

EndPosition Position

The ending Position of the ReturnNode.

Properties

ReturnLast

Return the last element of Value, which should be a list or array.

public bool ReturnLast { get; init; }

Property Value

bool

Value

The optional value to be returned.

public Node? Value { get; init; }

Property Value

Node