示例#1
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
        public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
        {
            if (await walker.WalkAsync(this, cancellationToken))
            {
                if (NameExpression != null)
                {
                    await NameExpression.WalkAsync(walker, cancellationToken);
                }

                foreach (var p in Parameters)
                {
                    await p.WalkAsync(walker, cancellationToken);
                }

                if (Decorators != null)
                {
                    await Decorators.WalkAsync(walker, cancellationToken);
                }
                if (_body != null)
                {
                    await _body.WalkAsync(walker, cancellationToken);
                }
                if (ReturnAnnotation != null)
                {
                    await ReturnAnnotation.WalkAsync(walker, cancellationToken);
                }
            }
            await walker.PostWalkAsync(this, cancellationToken);
        }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     cancellationToken.ThrowIfCancellationRequested();
     if (await walker.WalkAsync(this, cancellationToken))
     {
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
        public async override Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
        {
            if (await walker.WalkAsync(this, cancellationToken))
            {
                await Value.WalkAsync(walker, cancellationToken);

                await FormatSpecifier?.WalkAsync(walker, cancellationToken);
            }
            await walker.PostWalkAsync(this, cancellationToken);
        }
示例#5
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         foreach (var n in _names.MaybeEnumerate().ExcludeDefault())
         {
             await n.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (Target != null)
         {
             await Target.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
示例#7
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         foreach (var decorator in Decorators.MaybeEnumerate())
         {
             await decorator?.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         foreach (var preceeding in _preceeding.MaybeEnumerate())
         {
             await preceeding.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         foreach (var expression in Expressions.MaybeEnumerate())
         {
             await expression.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
示例#10
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         foreach (var n in Names)
         {
             await n.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
示例#11
0
 public async override Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         foreach (var child in _children)
         {
             await child.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
示例#12
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         foreach (var s in _statements.MaybeEnumerate())
         {
             cancellationToken.ThrowIfCancellationRequested();
             await s.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         foreach (var item in _items)
         {
             await item.WalkAsync(walker, cancellationToken);
         }
         if (Body != null)
         {
             await Body.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (ContextManager != null)
         {
             await ContextManager.WalkAsync(walker, cancellationToken);
         }
         if (Variable != null)
         {
             await Variable.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         foreach (var e in _left)
         {
             await e.WalkAsync(walker, cancellationToken);
         }
         if (Right != null)
         {
             await Right.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
示例#16
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (Expression != null)
         {
             await Expression.WalkAsync(walker, cancellationToken);
         }
         if (Annotation != null)
         {
             await Annotation.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
示例#17
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (Item != null)
         {
             await Item.WalkAsync(walker, cancellationToken);
         }
         foreach (var ci in Iterators.MaybeEnumerate())
         {
             await ci.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
示例#18
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (_preceding != null)
         {
             await _preceding.WalkAsync(walker, cancellationToken);
         }
         if (_nested != null)
         {
             await _nested.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (Target != null)
         {
             await Target.WalkAsync(walker, cancellationToken);
         }
         foreach (var arg in _args.MaybeEnumerate())
         {
             await arg.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (Annotation != null)
         {
             await Annotation.WalkAsync(walker, cancellationToken);
         }
         if (DefaultValue != null)
         {
             await DefaultValue.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         foreach (var test in Tests)
         {
             await test.WalkAsync(walker, cancellationToken);
         }
         if (ElseStatement != null)
         {
             await ElseStatement.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
示例#22
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (SliceStart != null)
         {
             await SliceStart.WalkAsync(walker, cancellationToken);
         }
         if (SliceStop != null)
         {
             await SliceStop.WalkAsync(walker, cancellationToken);
         }
         if (SliceStep != null)
         {
             await SliceStep.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
示例#23
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (Test != null)
         {
             await Test.WalkAsync(walker, cancellationToken);
         }
         if (TrueExpression != null)
         {
             await TrueExpression.WalkAsync(walker, cancellationToken);
         }
         if (FalseExpression != null)
         {
             await FalseExpression.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (Test != null)
         {
             await Test.WalkAsync(walker, cancellationToken);
         }
         if (Body != null)
         {
             await Body.WalkAsync(walker, cancellationToken);
         }
         if (ElseStatement != null)
         {
             await ElseStatement.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
示例#25
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (Body != null)
         {
             await Body.WalkAsync(walker, cancellationToken);
         }
         foreach (var handler in _handlers.MaybeEnumerate())
         {
             await handler.WalkAsync(walker, cancellationToken);
         }
         if (Else != null)
         {
             await Else.WalkAsync(walker, cancellationToken);
         }
         if (Finally != null)
         {
             await Finally.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
示例#26
0
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (ExceptType != null)
         {
             await ExceptType.WalkAsync(walker, cancellationToken);
         }
         if (Value != null)
         {
             await Value.WalkAsync(walker, cancellationToken);
         }
         if (Traceback != null)
         {
             await Traceback.WalkAsync(walker, cancellationToken);
         }
         if (Cause != null)
         {
             await Cause.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }
 public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default)
 {
     if (await walker.WalkAsync(this, cancellationToken))
     {
         if (_code != null)
         {
             await _code.WalkAsync(walker, cancellationToken);
         }
         if (_codeTuple != null)
         {
             await _codeTuple.WalkAsync(walker, cancellationToken);
         }
         if (_locals != null)
         {
             await _locals.WalkAsync(walker, cancellationToken);
         }
         if (_globals != null)
         {
             await _globals.WalkAsync(walker, cancellationToken);
         }
     }
     await walker.PostWalkAsync(this, cancellationToken);
 }