From 1d812c241432c057ec86a0df49cad23f67de68df Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 18 Aug 2014 11:22:38 +0200 Subject: [PATCH] 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. --- jedi/parser/representation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi/parser/representation.py b/jedi/parser/representation.py index 0529cacf..bd91949b 100644 --- a/jedi/parser/representation.py +++ b/jedi/parser/representation.py @@ -1277,7 +1277,7 @@ class StatementElement(Simple): def set_next(self, call): """ Adds another part of the statement""" - call.parent = self.parent + call.parent = self if self.next is not None: self.next.set_next(call) else: @@ -1288,7 +1288,7 @@ class StatementElement(Simple): An execution is nothing else than brackets, with params in them, which shows access on the internals of this name. """ - call.parent = self.parent + call.parent = self if self.next is not None: self.next.set_execution(call) elif self.execution is not None: