1
0
forked from VimPlug/jedi

Add a names_dict to scopes. This is good for the future parser and now useful to process self.foo and other stuff.

This commit is contained in:
Dave Halter
2014-09-24 12:44:24 +02:00
parent c61f79314b
commit d5fbc006e2
3 changed files with 25 additions and 6 deletions

View File

@@ -100,6 +100,9 @@ class Parser(object):
except KeyError:
self.module.used_names[tok_name] = set([simple])
self.module.temp_used_names = []
if isinstance(simple, pr.Statement):
for name, call in simple.get_names_dict().items():
self._scope.add_name_call(name, call)
def _parse_dotted_name(self, pre_used_token=None):
"""