예제 #1
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         foreach (var s in _items.MaybeEnumerate())
         {
             s.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
예제 #2
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         foreach (var decorator in Decorators.MaybeEnumerate())
         {
             decorator?.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         foreach (var expression in _expressions.MaybeEnumerate())
         {
             expression.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
예제 #4
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         foreach (var s in Items)
         {
             s.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         Target?.Walk(walker);
         foreach (var arg in Args)
         {
             arg.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         Target?.Walk(walker);
         foreach (var arg in _args.MaybeEnumerate())
         {
             arg.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
예제 #7
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         Item?.Walk(walker);
         foreach (var ci in Iterators.MaybeEnumerate())
         {
             ci.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         foreach (var e in _left)
         {
             e.Walk(walker);
         }
         Right?.Walk(walker);
     }
     walker.PostWalk(this);
 }
        public override void Walk(PythonWalker walker)
        {
            if (walker.Walk(this))
            {
                foreach (var test in Tests)
                {
                    test.Walk(walker);
                }

                ElseStatement?.Walk(walker);
            }
            walker.PostWalk(this);
        }
예제 #10
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         Body?.Walk(walker);
         foreach (var handler in _handlers.MaybeEnumerate())
         {
             handler.Walk(walker);
         }
         Else?.Walk(walker);
         Finally?.Walk(walker);
     }
     walker.PostWalk(this);
 }
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         NameExpression?.Walk(walker);
         foreach (var p in Parameters)
         {
             p.Walk(walker);
         }
         Decorators?.Walk(walker);
         _body?.Walk(walker);
         ReturnAnnotation?.Walk(walker);
     }
     walker.PostWalk(this);
 }
        public override void Walk(PythonWalker walker)
        {
            if (walker.Walk(this))
            {
                foreach (var item in _items)
                {
                    item.Walk(walker);
                }

                if (Body != null)
                {
                    Body.Walk(walker);
                }
            }
            walker.PostWalk(this);
        }