forked from VimPlug/jedi
Remove all scope_names_generator usages.
This commit is contained in:
@@ -755,9 +755,6 @@ class Class(ClassOrFunc):
|
||||
sub.get_call_signature(func_name=self.name), docstr)
|
||||
return docstr
|
||||
|
||||
def scope_names_generator(self, position=None):
|
||||
yield self, filter_after_position(self.get_defined_names(), position)
|
||||
|
||||
|
||||
def _create_params(function, lst):
|
||||
if not lst:
|
||||
@@ -830,9 +827,6 @@ class Function(ClassOrFunc):
|
||||
debug.warning("multiple names in param %s", n)
|
||||
return n
|
||||
|
||||
def scope_names_generator(self, position=None):
|
||||
yield self, filter_after_position(self.get_defined_names(), position)
|
||||
|
||||
def get_call_signature(self, width=72, func_name=None):
|
||||
"""
|
||||
Generate call signature of this function.
|
||||
@@ -1269,9 +1263,6 @@ class CompFor(Simple):
|
||||
def get_defined_names(self):
|
||||
return _defined_names(self.children[1])
|
||||
|
||||
def scope_names_generator(self, position):
|
||||
yield self, []
|
||||
|
||||
@property
|
||||
def asserts(self):
|
||||
"""Since it's a scope, it can be asked for asserts."""
|
||||
|
||||
Reference in New Issue
Block a user