1
0
forked from VimPlug/jedi

Fix the remaining issues with the StatementElement.next refactoring.

This commit is contained in:
Dave Halter
2014-08-19 00:12:14 +02:00
parent 8006d6f190
commit 8bde89cc58
4 changed files with 7 additions and 3 deletions

View File

@@ -106,9 +106,10 @@ def call_signature_array_for_pos(stmt, pos):
def search_call(call, pos, origin_call=None):
tup = None, 0, None
if call.next is not None:
while call.next is not None and tup[0] is None:
method = search_array if isinstance(call.next, pr.Array) else search_call
tup = method(call.next, pos, origin_call or call)
call = call.next
return tup
if stmt.start_pos >= pos >= stmt.end_pos: