1
0
forked from VimPlug/jedi

api_classes.RelatedName -> Usage

This commit is contained in:
David Halter
2013-05-03 21:06:56 +04:30
parent efeeee9706
commit edd0a08351
3 changed files with 8 additions and 8 deletions

View File

@@ -445,7 +445,7 @@ def usages(definitions, search_name, mods):
# compare to see if they match
if any(r in compare_definitions for r in compare_follow_res):
scope = call.parent
result.append(api_classes.RelatedName(search, scope))
result.append(api_classes.Usage(search, scope))
return result
@@ -475,7 +475,7 @@ def usages(definitions, search_name, mods):
direct_resolve=True)
f = i.follow(is_goto=True)
if set(f) & set(definitions):
names.append(api_classes.RelatedName(name_part, stmt))
names.append(api_classes.Usage(name_part, stmt))
else:
for call in _scan_statement(stmt, search_name,
assignment_details=True):