public ContainedFunctionBinder(SharedBinderState sharedBinderState, Binder parent, Binder containerBinder) : base(sharedBinderState, parent) { if (containerBinder == null) throw new ArgumentNullException(nameof(containerBinder)); _containerBinder = containerBinder; }
public ContainedFunctionBinder(SharedBinderState sharedBinderState, Binder parent, Binder containerBinder) : base(sharedBinderState, parent) { if (containerBinder == null) { throw new ArgumentNullException(nameof(containerBinder)); } _containerBinder = containerBinder; }
public static BindingResult Bind(SyntaxNode syntaxRoot, CancellationToken cancellationToken) { var sharedBinderState = new SharedBinderState(cancellationToken); var intrinsicBinder = new IntrinsicBinder(sharedBinderState); var binder = new Binder(sharedBinderState, intrinsicBinder); var boundRoot = binder.Bind(syntaxRoot, binder.BindRoot); return(new BindingResult(syntaxRoot, boundRoot, sharedBinderState.BoundNodeFromSyntaxNode, sharedBinderState.BinderFromBoundNode, sharedBinderState.Diagnostics)); }
protected Binder(SharedBinderState sharedBinderState, Binder parent) { _sharedBinderState = sharedBinderState; _symbols = new Dictionary <string, List <Symbol> >(); Parent = parent; }
public ClassMethodBinder(SharedBinderState sharedBinderState, Binder parent, ClassSymbol classSymbol) : base(sharedBinderState, parent) { _classSymbol = classSymbol; }
public NamespaceBinder(SharedBinderState sharedBinderState, Binder parent, NamespaceSymbol namespaceSymbol) : base(sharedBinderState, parent) { NamespaceSymbol = namespaceSymbol; }
public IntrinsicBinder(SharedBinderState sharedBinderState) : base(sharedBinderState, null) { }