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
Value
NodeThe optional value to be returned.
ReturnLast
boolReturn the last element of Value, which should be a list or array.
StartPosition
PositionThe starting Position of the ReturnNode.
EndPosition
PositionThe 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; }