From ff7680c15fd8a2b324f43cabe40d4b56d1e57bac Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 9 Sep 2014 12:54:46 +0200 Subject: [PATCH] Generate the expression_list of a statement in any case. This is a consequence of being able to have Calls as parents of Names. Otherwise we would have changing Name.parent values. --- jedi/parser/representation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jedi/parser/representation.py b/jedi/parser/representation.py index 76fc7a2d..e6122dc8 100644 --- a/jedi/parser/representation.py +++ b/jedi/parser/representation.py @@ -922,6 +922,9 @@ class Statement(Simple, DocstringMixin): # cache self._assignment_details = [] + # For now just generate the expression list, even if its not needed. + # This will help to adapt a better new AST. + self.expression_list() @property def end_pos(self):