コード例 #1
0
 public ContainedFunctionBinder(SharedBinderState sharedBinderState, Binder parent, Binder containerBinder)
     : base(sharedBinderState, parent)
 {
     if (containerBinder == null)
         throw new ArgumentNullException(nameof(containerBinder));
     _containerBinder = containerBinder;
 }
コード例 #2
0
 public ContainedFunctionBinder(SharedBinderState sharedBinderState, Binder parent, Binder containerBinder)
     : base(sharedBinderState, parent)
 {
     if (containerBinder == null)
     {
         throw new ArgumentNullException(nameof(containerBinder));
     }
     _containerBinder = containerBinder;
 }
コード例 #3
0
        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));
        }
コード例 #4
0
 public ClassMethodBinder(SharedBinderState sharedBinderState, Binder parent, ClassSymbol classSymbol)
     : base(sharedBinderState, parent)
 {
     _classSymbol = classSymbol;
 }
コード例 #5
0
 public NamespaceBinder(SharedBinderState sharedBinderState, Binder parent, NamespaceSymbol namespaceSymbol)
     : base(sharedBinderState, parent)
 {
     NamespaceSymbol = namespaceSymbol;
 }
コード例 #6
0
ファイル: NamespaceBinder.cs プロジェクト: tgjones/HlslTools
 public NamespaceBinder(SharedBinderState sharedBinderState, Binder parent, NamespaceSymbol namespaceSymbol)
     : base(sharedBinderState, parent)
 {
     NamespaceSymbol = namespaceSymbol;
 }
コード例 #7
0
 public ClassMethodBinder(SharedBinderState sharedBinderState, Binder parent, ClassSymbol classSymbol)
     : base(sharedBinderState, parent)
 {
     _classSymbol = classSymbol;
 }
コード例 #8
0
 public IntrinsicBinder(SharedBinderState sharedBinderState)
     : base(sharedBinderState, null)
 {
 }
コード例 #9
0
 protected Binder(SharedBinderState sharedBinderState, Binder parent)
 {
     _sharedBinderState = sharedBinderState;
     _symbols           = new Dictionary <string, List <Symbol> >();
     Parent             = parent;
 }
コード例 #10
0
ファイル: IntrinsicBinder.cs プロジェクト: tgjones/HlslTools
 public IntrinsicBinder(SharedBinderState sharedBinderState)
     : base(sharedBinderState, null)
 {
     
 }