1
0
forked from VimPlug/jedi

remove is_goto parameters from NameFinder - yay, finally reached a first longtime goal

This commit is contained in:
Dave Halter
2014-01-07 00:24:57 +01:00
parent d38c4f7482
commit a66589161d
2 changed files with 3 additions and 3 deletions

View File

@@ -191,7 +191,7 @@ class Evaluator(object):
f = finder.NameFinder(self, scope, name_str, position) f = finder.NameFinder(self, scope, name_str, position)
scopes = f.scopes(search_global) scopes = f.scopes(search_global)
if is_goto: if is_goto:
return f.filter_name(scopes, is_goto=is_goto) return f.filter_name(scopes)
return f.find(scopes, resolve_decorator) return f.find(scopes, resolve_decorator)
@memoize_default(default=(), evaluator_is_first_arg=True) @memoize_default(default=(), evaluator_is_first_arg=True)

View File

@@ -205,7 +205,7 @@ class NameFinder(object):
return True return True
return False 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 Filters all variables of a scope (which are defined in the
`scope_generator`), until the name fits. `scope_generator`), until the name fits.
@@ -244,7 +244,7 @@ class NameFinder(object):
% (self.name_str, self.scope, nscope, u(result), self.position)) % (self.name_str, self.scope, nscope, u(result), self.position))
return result return result
def names_to_types(self, names, is_goto=True): def names_to_types(self, names):
result = [] result = []
# This adds additional types # This adds additional types
flow_scope = self.scope flow_scope = self.scope