本文整理汇总了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);
}
示例2: Walk
public override void Walk(PythonWalker walker) {
if (walker.Walk(this)) {
if (_test != null) {
_test.Walk(walker);
}
}
walker.PostWalk(this);
}
示例3: Walk
public override void Walk(PythonWalker walker) {
if (walker.Walk(this)) {
if (_expression != null) {
_expression.Walk(walker);
}
}
walker.PostWalk(this);
}
示例4: Walk
public override void Walk(PythonWalker walker) {
if (walker.Walk(this)) {
foreach (Expression s in _items) {
s.Walk(walker);
}
}
walker.PostWalk(this);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}