mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-17 05:49:37 +08:00
document a goto part of the API
This commit is contained in:
@@ -343,8 +343,10 @@ class Evaluator(object):
|
|||||||
|
|
||||||
scope = stmt.get_parent_until(pr.IsScope)
|
scope = stmt.get_parent_until(pr.IsScope)
|
||||||
pos = stmt.start_pos
|
pos = stmt.start_pos
|
||||||
call_path, search = call_path[:-1], call_path[-1]
|
# Need this to return the params if you're actually doing a goto on the
|
||||||
|
# param.
|
||||||
pos = pos[0], pos[1] + 1
|
pos = pos[0], pos[1] + 1
|
||||||
|
call_path, search = call_path[:-1], call_path[-1]
|
||||||
|
|
||||||
if call_path:
|
if call_path:
|
||||||
scopes = self.eval_call_path(iter(call_path), scope, pos)
|
scopes = self.eval_call_path(iter(call_path), scope, pos)
|
||||||
|
|||||||
Reference in New Issue
Block a user