public override void PostWalk(GeneratorExpression node) { EndScope(false); Debug.Assert(_head != null); base.PostWalk(node); }
// genexpr_for ::= "for" target_list "in" or_test [comp_iter] // // "for" has NOT been eaten before entering this method private Expression ParseGeneratorExpression(Expression expr, string rightParenWhiteSpace = null) { ComprehensionIterator[] iters = ParseCompIter(); GeneratorExpression ret = new GeneratorExpression(expr, iters); ret.SetLoc(expr.StartIndex, GetEnd()); return ret; }
public override bool Walk(GeneratorExpression node) { node.Parent = _currentScope; return(base.Walk(node)); }
public override bool Walk(GeneratorExpression node) { BeginScope(); return base.Walk(node); }
public override bool Walk(GeneratorExpression node) { return UpdateLineInfo(node, true); }
public override void PostWalk(GeneratorExpression node) { Debug.Assert(_scope is ComprehensionScope); _scope = _scope.OuterScope; base.PostWalk(node); }
public override bool Walk(GeneratorExpression node) { EnsureComprehensionScope(node, MakeGeneratorComprehensionScope); Debug.Assert(_scope is ComprehensionScope); return base.Walk(node); }
public override void PostWalk(GeneratorExpression node) { PostWalkWorker(node); }
// GeneratorExpression public override bool Walk(GeneratorExpression node) { return ShouldWalkWorker(node); }