Table of Contents

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

Name Token

The token representing the name of the variable.

Member Variable

An 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

Variable

Name

The token representing the name of the variable.

public Token Name { get; init; }

Property Value

Token

Methods

Accept<T>(IVisitor<T>)

Accepts a visitor to process this variable expression.

public override T Accept<T>(IVisitor<T> visitor)

Parameters

visitor IVisitor<T>

The visitor that will process the variable expression.

Returns

T

Type Parameters

T