Class ReturnNode
- Namespace
- EzrSquared.Runtime.Nodes
- Assembly
- ezrSquared-lib.dll
The Node structure for a return statement.
public record ReturnNode : Node
- Inheritance
-
objectReturnNode
- 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
ValueNodeThe optional value to be returned.
ReturnLastboolReturn the last element of Value, which should be a list or array.
StartPositionPositionThe starting Position of the ReturnNode.
EndPositionPositionThe 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; }