CoatiSoftware / SourcetrailPythonIndexer

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

Indexer fails to record multiple call edges for a single call site #41

Closed mlangkabel closed 5 years ago

mlangkabel commented 5 years ago

Consider the following code snippet:

def foo(bar):
    bar.bar()

class A:
    def bar(self):
        print("A")

class B:
    def bar(self):
        print("B")

foo(A())
foo(B())

When indexing this snippet the SourcetrailPythonIndexer only records the call from foo to A.bar but misses the call to B.bar.

mlangkabel commented 5 years ago

Fixed by commit 6fd53ae2.