• Kevin Modzelewski's avatar
    Make 'is_generator' be a property of SourceInfo, not ScopeInfo · faa290b8
    Kevin Modzelewski authored
    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.
    faa290b8
exec_parsing.py 160 Bytes