public override async Task WalkAsync(PythonWalkerAsync walker, CancellationToken cancellationToken = default) { if (await walker.WalkAsync(this, cancellationToken)) { if (Target != null) { await Target.WalkAsync(walker, cancellationToken); } if (Index != null) { await Index.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 (Message != null) { await Message.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 (Item != null) { await Item.WalkAsync(walker, cancellationToken); } foreach (var ci in _iterators.MaybeEnumerate()) { await ci.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 (Left != null) { await Left.WalkAsync(walker, cancellationToken); } if (Right != null) { await Right.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)) { if (Target != null) { await Target.WalkAsync(walker, cancellationToken); } foreach (var arg in Args) { 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 (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); }
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); }
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 (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 (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); }
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); }