CoatiSoftware / SourcetrailPythonIndexer

Python Indexer for Sourcetrail based on jedi, parso and SourcetrailDB
GNU General Public License v3.0
90 stars 28 forks source link

Reference to for-loop-iterator not recorded inside iterable argument definition #39

Open mlangkabel opened 5 years ago

mlangkabel commented 5 years ago

Consider the following code snippet:

baz = sorted(name[:-3] for name in ["foobar"] if len(name) > 3)

In this snippet the SourcetrailPythonIndexer records an "unsolved symbol" instead of a local variable for the last usage of name (inside the "len(name)" statement).