コード例 #1
0
            public ScopeHelper(TreeContextVisitor visitor, AstNode scope)
            {
                Debug.Assert(visitor != null);
                Debug.Assert(scope != null);

                _visitor         = visitor;
                visitor._context = visitor._context.NextContext(scope);
            }
コード例 #2
0
            public ScopeHelper(TreeContextVisitor visitor, AstNode scope)
            {
                Debug.Assert(visitor != null);

                _visitor = visitor;
                _node    = scope ?? throw new ArgumentNullException(nameof(scope));

                visitor.Context.EnterScope(scope);
            }