本文整理汇总了C#中IronPython.Compiler.Ast.PythonWalker类的典型用法代码示例。如果您正苦于以下问题:C# PythonWalker类的具体用法?C# PythonWalker怎么用?C# PythonWalker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PythonWalker类属于IronPython.Compiler.Ast命名空间,在下文中一共展示了PythonWalker类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: Walk
public override void Walk(PythonWalker walker) {
if (walker.Walk(this)) {
}
walker.PostWalk(this);
}
开发者ID:mstram,项目名称:ironruby,代码行数:5,代码来源:NameExpression.cs
示例17: Walk
public override void Walk(PythonWalker walker) {
if (walker.Walk(this)) {
if (_decorators != null) {
foreach (Expression decorator in _decorators) {
decorator.Walk(walker);
}
}
if (_bases != null) {
foreach (Expression b in _bases) {
b.Walk(walker);
}
}
if (_body != null) {
_body.Walk(walker);
}
}
walker.PostWalk(this);
}
开发者ID:CookieEaters,项目名称:FireHTTP,代码行数:18,代码来源:ClassDefinition.cs
示例18: Walk
public abstract void Walk(PythonWalker walker);
开发者ID:jschementi,项目名称:iron,代码行数:1,代码来源:Node.cs
示例19: Walk
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);
}
开发者ID:Hank923,项目名称:ironruby,代码行数:11,代码来源:Parameter.cs
示例20: Walk
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);
}
开发者ID:octavioh,项目名称:ironruby,代码行数:19,代码来源:TryStatement.cs
注:本文中的IronPython.Compiler.Ast.PythonWalker类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论