// ListComp public override bool Walk(ListComprehension node) { BitArray save = _bits; _bits = new BitArray(_bits); foreach (ComprehensionIterator iter in node.Iterators) { iter.Walk(this); } node.Item.Walk(this); _bits = save; return(false); }
public override void PostWalk(ListComprehension node) { EndScope(false); Debug.Assert(_head != null); base.PostWalk(node); }
public override bool Walk(ListComprehension node) { BeginScope(); return base.Walk(node); }
public override bool Walk(ListComprehension node) { node.Parent = _currentScope; return(base.Walk(node)); }
public override bool Walk(ListComprehension node) { return UpdateLineInfo(node, true); }
public override void PostWalk(ListComprehension node) { if (_curUnit.ProjectState.LanguageVersion.Is3x()) { Debug.Assert(_scope is ComprehensionScope); _scope = _scope.OuterScope; } base.PostWalk(node); }
public override bool Walk(ListComprehension node) { // List comprehension runs in a new scope in 3.x, runs in the same // scope in 2.x. But these don't get their own analysis units // because they are still just expressions. if (_curUnit.ProjectState.LanguageVersion.Is3x()) { EnsureComprehensionScope(node, MakeListComprehensionScope); } return base.Walk(node); }
// ListComp public override bool Walk(ListComprehension node) { BitArray save = _bits; _bits = new BitArray(_bits); foreach (ComprehensionIterator iter in node.Iterators) { iter.Walk(this); } node.Item.Walk(this); _bits = save; return false; }
public override void PostWalk(ListComprehension node) { PostWalkWorker(node); }
// ListComprehension public override bool Walk(ListComprehension node) { return ShouldWalkWorker(node); }