public static BindingResult Bind(CompilationUnitSyntax compilationUnit, DataContext dataContext) { var sharedBinderState = new SharedBinderState(); var binder = new GlobalBinder(sharedBinderState, dataContext); var boundRoot = binder.BindRoot(compilationUnit.Root); return(new BindingResult(compilationUnit, boundRoot, sharedBinderState.BoundNodeFromSynatxNode, sharedBinderState.BinderFromBoundNode, sharedBinderState.Diagnostics)); }
public GlobalBinder(SharedBinderState sharedBinderState, DataContext dataContext) : base(sharedBinderState, null) { var symbols = dataContext.Tables.Cast <Symbol>() .Concat(dataContext.Functions) .Concat(dataContext.Aggregates) .Concat(dataContext.Variables); _dataContext = dataContext; LocalSymbols = SymbolTable.Create(symbols); }
public JoinConditionBinder(SharedBinderState sharedBinderState, Binder parent, IEnumerable <Symbol> localSymbols) : base(sharedBinderState, parent, localSymbols) { }
public QueryBinder(SharedBinderState sharedBinderState, Binder parent) : base(sharedBinderState, parent) { QueryState = new BoundQueryState(parent.QueryState); }
public LocalBinder(SharedBinderState sharedBinderState, Binder parent, IEnumerable <Symbol> localSymbols) : base(sharedBinderState, parent) { LocalSymbols = SymbolTable.Create(ExpandTableInstances(localSymbols)); }
public AggregateArgumentBinder(SharedBinderState sharedBinderState, Binder parent) : base(sharedBinderState, parent) { }
public GroupByClauseBinder(SharedBinderState sharedBinderState, Binder parent) : base(sharedBinderState, parent) { }
protected Binder(SharedBinderState sharedBinderState, Binder parent) { Parent = parent; _sharedBinderState = sharedBinderState; }
public WhereClauseBinder(SharedBinderState sharedBinderState, Binder parent) : base(sharedBinderState, parent) { }