internal override bool ExposesLocalVariable(PythonVariable variable) { if (NeedsLocalsDictionary) { return true; } else if (variable.Scope == this) { return false; } return _comprehension.Parent.ExposesLocalVariable(variable); }