Class Variable
- Namespace
- flx.SILQ.Expressions
- Assembly
- flx.SILQ.dll
Represents a variable expression in the syntax tree.
public record Variable : Expression, IEquatable<Expression>, IEquatable<Variable>
- Inheritance
-
Variable
- Implements
- Inherited Members
Constructors
Variable(Token, Variable)
Represents a variable expression in the syntax tree.
public Variable(Token Name, Variable Member)
Parameters
NameTokenThe token representing the name of the variable.
MemberVariableAn optional member variable, allowing for nested variable access.
Properties
Member
An optional member variable, allowing for nested variable access.
public Variable Member { get; init; }
Property Value
Name
The token representing the name of the variable.
public Token Name { get; init; }
Property Value
Methods
Accept<T>(IVisitor<T>)
Accepts a visitor to process this variable expression.
public override T Accept<T>(IVisitor<T> visitor)
Parameters
visitorIVisitor<T>The visitor that will process the variable expression.
Returns
- T
Type Parameters
T