Make 'is_generator' be a property of SourceInfo, not ScopeInfo
ScopeInfo involves checking the whole function subtree to resolve scoping references. SourceInfo has information about the specific function. is_generator used to be in ScopeInfo, but accessing it would require doing the full subtree analysis, which can be unnecessary. This lets us avoid analyzing function subtrees that are never entered.
Showing
test/tests/exec_parsing.py
0 → 100644
Please register or sign in to comment