コード例 #1
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);
 }