1
0
forked from VimPlug/jedi

Remove all scope_names_generator usages.

This commit is contained in:
Dave Halter
2015-01-08 13:24:01 +01:00
parent af20eff943
commit a20fd12de9
5 changed files with 0 additions and 79 deletions

View File

@@ -59,9 +59,6 @@ class GeneratorMixin(object):
else:
yield name
def scope_names_generator(self, position=None):
yield self, self._get_defined_names()
@memoize_default()
def names_dicts(self, search_global=False): # is always False
dct = {}
@@ -259,16 +256,6 @@ class Array(IterableWrapper):
def iter_content(self):
return self.values()
def scope_names_generator(self, position=None):
"""
It returns e.g. for a list: append, pop, ...
"""
# `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
for _, names in scope.scope_names_generator():
yield self, names
@memoize_default()
def names_dicts(self, search_global=False): # Always False.
# `array.type` is a string with the type, e.g. 'list'.