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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user