1
0
forked from VimPlug/jedi

Use the "wrong" parents again for next/execution in StatementElement. This is important for call_signature lookups. We might still be able to change this somewhere in time.

This commit is contained in:
Dave Halter
2014-08-18 11:22:38 +02:00
parent fd90dfc4f5
commit 1d812c2414

View File

@@ -1277,7 +1277,7 @@ class StatementElement(Simple):
def set_next(self, call): def set_next(self, call):
""" Adds another part of the statement""" """ Adds another part of the statement"""
call.parent = self.parent call.parent = self
if self.next is not None: if self.next is not None:
self.next.set_next(call) self.next.set_next(call)
else: else:
@@ -1288,7 +1288,7 @@ class StatementElement(Simple):
An execution is nothing else than brackets, with params in them, which An execution is nothing else than brackets, with params in them, which
shows access on the internals of this name. shows access on the internals of this name.
""" """
call.parent = self.parent call.parent = self
if self.next is not None: if self.next is not None:
self.next.set_execution(call) self.next.set_execution(call)
elif self.execution is not None: elif self.execution is not None: