コード例 #1
0
 protected AnalysisWalker(ExpressionEval eval)
 {
     Eval               = eval;
     ImportHandler      = new ImportHandler(this);
     AssignmentHandler  = new AssignmentHandler(this);
     LoopHandler        = new LoopHandler(this);
     ConditionalHandler = new ConditionalHandler(this);
     WithHandler        = new WithHandler(this);
     TryExceptHandler   = new TryExceptHandler(this);
     NonLocalHandler    = new NonLocalHandler(this);
 }
コード例 #2
0
 public override bool Walk(WithStatement node)
 {
     WithHandler.HandleWith(node); // HandleWith does not walk the body.
     return(base.Walk(node));
 }
コード例 #3
0
 public override bool Walk(WithStatement node)
 {
     WithHandler.HandleWith(node);
     return(base.Walk(node));
 }
コード例 #4
0
        public override async Task <bool> WalkAsync(WithStatement node, CancellationToken cancellationToken = default)
        {
            await WithHandler.HandleWithAsync(node, cancellationToken);

            return(await base.WalkAsync(node, cancellationToken));
        }