Name parents are now Calls (once their statements have generated the Calls).
This makes the goto function more powerful. Also fixes an issue with the deep_ast_copy, that I tried to fix previously, but failed, because I hadn't tested it.
This commit is contained in:
1 parent
5a3ee02399
commit
2e7e2f0a29
2 files changed
+8
-4
No files matched your search
@@ -1323,6 +1323,7 @@ class Call(StatementElement):
|
||||
|
||||
def __init__(self, module, name, start_pos, end_pos, parent=None):
|
||||
super(Call, self).__init__(module, start_pos, end_pos, parent)
|
||||
name.parent = self
|
||||
self.name = name
|
||||
|
||||
def get_code(self):
|
||||
|
||||
Reference in new issue
Block a user