24 lines
661 B
C#
24 lines
661 B
C#
using System.Collections.Generic;
|
|
using Upsilon.BaseTypes;
|
|
using Upsilon.Text;
|
|
|
|
namespace Upsilon.Binder
|
|
{
|
|
public class BoundVariableSymbol : BoundExpression
|
|
{
|
|
public BoundVariableSymbol(VariableSymbol variableSymbol, TextSpan span) : base(span)
|
|
{
|
|
VariableSymbol = variableSymbol;
|
|
}
|
|
|
|
public VariableSymbol VariableSymbol { get; }
|
|
|
|
public override BoundKind Kind => BoundKind.BoundVariableSymbol;
|
|
public override IEnumerable<BoundNode> GetNodeAtPosition(int characterPosition)
|
|
{
|
|
yield return this;
|
|
}
|
|
|
|
public override Type Type => VariableSymbol.Type;
|
|
}
|
|
} |