1
0
forked from VimPlug/jedi

Start using names_dicts instead of scope_names_generator.

This commit is contained in:
Dave Halter
2015-01-01 23:27:03 +01:00
parent ed3cf5577e
commit 9de4a5479c
5 changed files with 111 additions and 14 deletions
+7
View File
@@ -257,6 +257,13 @@ class Array(IterableWrapper):
for _, names in scope.scope_names_generator():
yield self, names
@underscore_memoization
def names_dicts(self):
# `array.type` is a string with the type, e.g. 'list'.
scope = self._evaluator.find_types(compiled.builtin, self.type)[0]
scope = self._evaluator.execute(scope)[0] # builtins only have one class
return scope.names_dicts()
@common.safe_property
def parent(self):
return compiled.builtin