mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user