当前位置: 首页>>代码示例>>C#>>正文


C# Ast.PythonWalker类代码示例

本文整理汇总了C#中IronPython.Compiler.Ast.PythonWalker的典型用法代码示例。如果您正苦于以下问题:C# PythonWalker类的具体用法?C# PythonWalker怎么用?C# PythonWalker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PythonWalker类属于IronPython.Compiler.Ast命名空间,在下文中一共展示了PythonWalker类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Walk

 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         _function.Walk(walker);
         _iterable.Walk(walker);
     }
     walker.PostWalk(this);
 }
开发者ID:jcteague,项目名称:ironruby,代码行数:7,代码来源:GeneratorExpression.cs

示例2: Walk

 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_test != null) {
             _test.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
开发者ID:CookieEaters,项目名称:FireHTTP,代码行数:8,代码来源:ComprehensionIf.cs

示例3: Walk

 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_expression != null) {
             _expression.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
开发者ID:jxnmaomao,项目名称:ironruby,代码行数:8,代码来源:UnaryExpression.cs

示例4: Walk

 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         foreach (Expression s in _items) {
             s.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
开发者ID:CookieEaters,项目名称:FireHTTP,代码行数:8,代码来源:SetExpression.cs

示例5: Walk

 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_expressions != null) {
             foreach (Expression expression in _expressions) {
                 expression.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
开发者ID:octavioh,项目名称:ironruby,代码行数:10,代码来源:DelStatement.cs

示例6: Walk

 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (Items != null) {
             foreach (Expression e in Items) {
                 e.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
开发者ID:jcteague,项目名称:ironruby,代码行数:10,代码来源:TupleExpression.cs

示例7: Walk

 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_statements != null) {
             foreach (Statement s in _statements) {
                 s.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
开发者ID:techarch,项目名称:ironruby,代码行数:10,代码来源:SuiteStatement.cs

示例8: Walk

 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);
 }
开发者ID:octavioh,项目名称:ironruby,代码行数:11,代码来源:AndExpression.cs

示例9: Walk

 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);
 }
开发者ID:techarch,项目名称:ironruby,代码行数:13,代码来源:IfStatement.cs

示例10: Walk

 public override void Walk(PythonWalker walker) {
     if (walker.Walk(this)) {
         if (_item != null) {
             _item.Walk(walker);
         }
         if (_iterators != null) {
             foreach (ListComprehensionIterator lci in _iterators) {
                 lci.Walk(walker);
             }
         }
     }
     walker.PostWalk(this);
 }
开发者ID:techarch,项目名称:ironruby,代码行数:13,代码来源:ListComprehension.cs

示例11: Walk

 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);
 }
开发者ID:jcteague,项目名称:ironruby,代码行数:14,代码来源:RaiseStatement.cs

示例12: Walk

 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);
 }
开发者ID:atczyc,项目名称:ironruby,代码行数:14,代码来源:ExecStatement.cs

示例13: Walk

 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);
 }
开发者ID:CookieEaters,项目名称:FireHTTP,代码行数:14,代码来源:SliceExpression.cs

示例14: Walk

 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);
 }
开发者ID:jschementi,项目名称:iron,代码行数:14,代码来源:ConditionalExpression.cs

示例15: Walk

 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);
 }
开发者ID:joshholmes,项目名称:ironruby,代码行数:17,代码来源:ForStatement.cs


注:本文中的IronPython.Compiler.Ast.PythonWalker类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。