Files
Upsilon/Upsilon/Binder/BoundExpressions/BoundTableExpression.cs

34 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using Upsilon.Binder.VariableSymbols;
using Upsilon.Text;
using Type = Upsilon.BaseTypes.Type;
namespace Upsilon.Binder
{
public class BoundTableExpression : BoundExpression, IBoundNodeScopeOwner
{
public BoundTableExpression(Dictionary<string, VariableSymbol> expressions,
ImmutableArray<BoundStatement> statements, TextSpan span, BoundScope scope) : base(span)
{
Expressions = expressions;
Statements = statements;
Scope = scope;
}
public override BoundKind Kind => BoundKind.BoundTableExpression;
public override IEnumerable<BoundNode> GetChildren()
{
return Statements;
}
public override Type Type => Type.Table;
public Dictionary<string, VariableSymbol> Expressions { get; }
public ImmutableArray<BoundStatement> Statements { get; }
public BoundScope Scope { get; set; }
}
}