Refactoring: call_of_name -> call_of_leaf.

This commit is contained in:
Dave Halter
2016-06-21 18:42:20 +02:00
parent d0eb8137e2
commit 8e67facecc
6 changed files with 9 additions and 9 deletions

View File

@@ -453,7 +453,7 @@ class Evaluator(object):
elif def_.type in ('import_from', 'import_name'):
return imports.ImportWrapper(self, name).follow()
call = helpers.call_of_name(name)
call = helpers.call_of_leaf(name)
return self.eval_element(call)
def goto(self, name):
@@ -514,7 +514,7 @@ class Evaluator(object):
scope = name.get_parent_scope()
if tree.is_node(name.parent, 'trailer'):
call = helpers.call_of_name(name, cut_own_trailer=True)
call = helpers.call_of_leaf(name, cut_own_trailer=True)
types = self.eval_element(call)
return resolve_implicit_imports(iterable.unite(
self.find_types(typ, name, is_goto=True) for typ in types