CoatiSoftware / SourcetrailPythonIndexer

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

Named argument is recorded as local symbol of wrong scope #31

Closed mlangkabel closed 5 years ago

mlangkabel commented 5 years ago

Consider the following code snippet:

def foo(bar):
    pass

def baz():
    foo(bar = True)
    bar = True

Here the indexer merges the occurrences of the two tokens calles bar inside the function definition of baz, even though the first of these tokens should actually be an occurrence of the parameter bar of the function foo.

mlangkabel commented 5 years ago

Important note for fixing this issue: these named arguments may also be unsolved.

mlangkabel commented 5 years ago

Fixed with merge of pull request #35.