forked from VimPlug/jedi
remove is_goto parameters from NameFinder - yay, finally reached a first longtime goal
This commit is contained in:
@@ -191,7 +191,7 @@ class Evaluator(object):
|
||||
f = finder.NameFinder(self, scope, name_str, position)
|
||||
scopes = f.scopes(search_global)
|
||||
if is_goto:
|
||||
return f.filter_name(scopes, is_goto=is_goto)
|
||||
return f.filter_name(scopes)
|
||||
return f.find(scopes, resolve_decorator)
|
||||
|
||||
@memoize_default(default=(), evaluator_is_first_arg=True)
|
||||
|
||||
@@ -205,7 +205,7 @@ class NameFinder(object):
|
||||
return True
|
||||
return False
|
||||
|
||||
def filter_name(self, scope_generator, is_goto=False):
|
||||
def filter_name(self, scope_generator):
|
||||
"""
|
||||
Filters all variables of a scope (which are defined in the
|
||||
`scope_generator`), until the name fits.
|
||||
@@ -244,7 +244,7 @@ class NameFinder(object):
|
||||
% (self.name_str, self.scope, nscope, u(result), self.position))
|
||||
return result
|
||||
|
||||
def names_to_types(self, names, is_goto=True):
|
||||
def names_to_types(self, names):
|
||||
result = []
|
||||
# This adds additional types
|
||||
flow_scope = self.scope
|
||||
|
||||
Reference in New Issue
Block a user