• Kevin Modzelewski's avatar
    List comprehension support · 92117aab
    Kevin Modzelewski authored
    Should support:
    - multiple comprehensions
    - multiple if conditions
    - nested control flow expressions
    - OSR'ing from the list comprehension
    
    Though it tends to hit the OSR bug in the previous commit.
    
    Some extra changes that could have been split out:
    - use pointers-to-const instead of references-to-const for attribute-name passing,
      to make it harder to bind to a temporary name that will go away.
    - add a 'cls_only' flag to getattr / getattrType to not have to special-case clsattrs
      (or simply get it wrong, in the case of getattrType)
    92117aab
scoping_analysis.cpp 12.7 KB