public ScopeHelper(TreeContextVisitor visitor, AstNode scope) { Debug.Assert(visitor != null); Debug.Assert(scope != null); _visitor = visitor; visitor._context = visitor._context.NextContext(scope); }
public ScopeHelper(TreeContextVisitor visitor, AstNode scope) { Debug.Assert(visitor != null); _visitor = visitor; _node = scope ?? throw new ArgumentNullException(nameof(scope)); visitor.Context.EnterScope(scope); }