Пример #1
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         _expression.Walk(walker);
         _annotation?.Walk(walker);
     }
     walker.PostWalk(this);
 }
Пример #2
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         _preceding?.Walk(walker);
         _nested?.Walk(walker);
     }
     walker.PostWalk(this);
 }
Пример #3
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         _left.Walk(walker);
         _right.Walk(walker);
     }
     walker.PostWalk(this);
 }
Пример #4
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_expression != null) {
             _expression.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #5
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         foreach (Expression s in _items) {
             s.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #6
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         foreach (var preceeding in _preceeding) {
             preceeding.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #7
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_test != null) {
             _test.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #8
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_preceeding != null) {
             _preceeding.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #9
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         foreach (Expression e in _left) {
             e.Walk(walker);
         }
         _right.Walk(walker);
     }
     walker.PostWalk(this);
 }
Пример #10
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_statements != null) {
             foreach (Statement s in _statements) {
                 s.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #11
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         foreach (var decorator in _decorators) {
             if (decorator != null) {
                 decorator.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #12
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_expressions != null) {
             foreach (Expression expression in _expressions) {
                 expression.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #13
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (Items != null) {
             foreach (Expression e in Items) {
                 e.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #14
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_annotation != null) {
             _annotation.Walk(walker);
         }
         if (_defaultValue != null) {
             _defaultValue.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #15
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_target != null) {
             _target.Walk(walker);
         }
         if (_index != null) {
             _index.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #16
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_tuple != null) {
             _tuple.Walk(walker);
         }
         if (_defaultValue != null) {
             _defaultValue.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #17
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_left != null) {
             _left.Walk(walker);
         }
         if (_right != null) {
             _right.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #18
0
        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);
        }
Пример #19
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_target != null) {
             _target.Walk(walker);
         }
         if (_args != null) {
             foreach (Arg arg in _args) {
                 arg.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #20
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_tests != null) {
             foreach (IfStatementTest test in _tests) {
                 test.Walk(walker);
             }
         }
         if (_else != null) {
             _else.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #21
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_item != null) {
             _item.Walk(walker);
         }
         if (_iterators != null) {
             foreach (ComprehensionIterator ci in _iterators) {
                 ci.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_expressions != null)
         {
             foreach (Expression expression in _expressions)
             {
                 expression.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #23
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_sliceStart != null) {
             _sliceStart.Walk(walker);
         }
         if (_sliceStop != null) {
             _sliceStop.Walk(walker);
         }
         if (_sliceStep != null) {
             _sliceStep.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (Items != null)
         {
             foreach (Expression e in Items)
             {
                 e.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #25
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_testExpr != null) {
             _testExpr.Walk(walker);
         }
         if (_trueExpr != null) {
             _trueExpr.Walk(walker);
         }
         if (_falseExpr != null) {
             _falseExpr.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #26
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_items != null)
         {
             foreach (SliceExpression s in _items)
             {
                 s.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #27
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_type != null) {
             _type.Walk(walker);
         }
         if (_value != null) {
             _value.Walk(walker);
         }
         if (_traceback != null) {
             _traceback.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #28
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_code != null) {
             _code.Walk(walker);
         }
         if (_locals != null) {
             _locals.Walk(walker);
         }
         if (_globals != null) {
             _globals.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #29
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_statements != null)
         {
             foreach (Statement s in _statements)
             {
                 s.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #30
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         foreach (var decorator in _decorators)
         {
             if (decorator != null)
             {
                 decorator.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #31
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         Body?.Walk(walker);
         foreach (TryStatementHandler handler in _handlers.MaybeEnumerate())
         {
             handler.Walk(walker);
         }
         Else?.Walk(walker);
         Finally?.Walk(walker);
     }
     walker.PostWalk(this);
 }
Пример #32
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_tuple != null)
         {
             _tuple.Walk(walker);
         }
         if (_defaultValue != null)
         {
             _defaultValue.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #33
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         NameExpression?.Walk(walker);
         foreach (var p in _parameters.MaybeEnumerate())
         {
             p.Walk(walker);
         }
         Decorators?.Walk(walker);
         _body?.Walk(walker);
         ReturnAnnotation?.Walk(walker);
     }
     walker.PostWalk(this);
 }
Пример #34
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_target != null)
         {
             _target.Walk(walker);
         }
         if (_index != null)
         {
             _index.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_test != null)
         {
             _test.Walk(walker);
         }
         if (_body != null)
         {
             _body.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #36
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_test != null)
         {
             _test.Walk(walker);
         }
         if (_message != null)
         {
             _message.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #37
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_annotation != null)
         {
             _annotation.Walk(walker);
         }
         if (_defaultValue != null)
         {
             _defaultValue.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #38
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_left != null)
         {
             _left.Walk(walker);
         }
         if (_right != null)
         {
             _right.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #39
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_lhs != null)
         {
             _lhs.Walk(walker);
         }
         if (_list != null)
         {
             _list.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #40
0
        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);
        }
Пример #41
0
        public override void Walk(PythonWalker walker)
        {
            if (walker.Walk(this))
            {
                if (_tests != null)
                {
                    foreach (IfStatementTest test in _tests)
                    {
                        test.Walk(walker);
                    }
                }

                _else?.Walk(walker);
            }
            walker.PostWalk(this);
        }
Пример #42
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_left != null) {
             _left.Walk(walker);
         }
         if (_list != null) {
             _list.Walk(walker);
         }
         if (_body != null) {
             _body.Walk(walker);
         }
         if (_else != null) {
             _else.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #43
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_target != null)
         {
             _target.Walk(walker);
         }
         if (_args != null)
         {
             foreach (Arg arg in _args)
             {
                 arg.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #44
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_item != null)
         {
             _item.Walk(walker);
         }
         if (_iterators != null)
         {
             foreach (ComprehensionIterator ci in _iterators)
             {
                 ci.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
Пример #45
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_type != null)
         {
             _type.Walk(walker);
         }
         if (_value != null)
         {
             _value.Walk(walker);
         }
         if (_traceback != null)
         {
             _traceback.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #46
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_testExpr != null)
         {
             _testExpr.Walk(walker);
         }
         if (_trueExpr != null)
         {
             _trueExpr.Walk(walker);
         }
         if (_falseExpr != null)
         {
             _falseExpr.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #47
0
 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_body != null) {
             _body.Walk(walker);
         }
         if (_handlers != null) {
             foreach (TryStatementHandler handler in _handlers) {
                 handler.Walk(walker);
             }
         }
         if (_else != null) {
             _else.Walk(walker);
         }
         if (_finally != null) {
             _finally.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_sliceStart != null)
         {
             _sliceStart.Walk(walker);
         }
         if (_sliceStop != null)
         {
             _sliceStop.Walk(walker);
         }
         if (_sliceStep != null)
         {
             _sliceStep.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #49
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_code != null)
         {
             _code.Walk(walker);
         }
         if (_locals != null)
         {
             _locals.Walk(walker);
         }
         if (_globals != null)
         {
             _globals.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_decorators != null)
         {
             _decorators.Walk(walker);
         }
         if (_bases != null)
         {
             foreach (var b in _bases)
             {
                 b.Walk(walker);
             }
         }
         if (_body != null)
         {
             _body.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #51
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_parameters != null)
         {
             foreach (Parameter p in _parameters)
             {
                 p.Walk(walker);
             }
         }
         if (_decorators != null)
         {
             _decorators.Walk(walker);
         }
         if (_body != null)
         {
             _body.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #52
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_left != null)
         {
             _left.Walk(walker);
         }
         if (_list != null)
         {
             _list.Walk(walker);
         }
         if (_body != null)
         {
             _body.Walk(walker);
         }
         if (_else != null)
         {
             _else.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
Пример #53
0
 public override void Walk(PythonWalker walker) {
     if (ContextManager != null) {
         ContextManager.Walk(walker);
     }
     if (Variable != null) {
         Variable.Walk(walker);
     }
 }
Пример #54
0
 public override void Walk(PythonWalker walker)
 {
     if (walker.Walk(this)) {
         _expr.Walk(walker);
     }
 }
Пример #55
0
 public override void Walk(PythonWalker walker)
 {
     ContextManager?.Walk(walker);
     Variable?.Walk(walker);
 }
Пример #56
0
 public abstract void Walk(PythonWalker walker);
Пример #57
0
 public abstract override void Walk(PythonWalker walker);
Пример #58
0
 public abstract override void Walk(PythonWalker walker);
Пример #59
0
 public abstract void Walk(PythonWalker walker);