1
0
forked from VimPlug/jedi

fix the CallSignature.index attribute

This commit is contained in:
Dave Halter
2014-05-04 23:36:15 +02:00
parent a4b9ccc2e7
commit f2af053a4a
4 changed files with 57 additions and 22 deletions

View File

@@ -123,13 +123,6 @@ def search_call_signatures(user_stmt, position):
arr, index = call_signature_array_for_pos(user_stmt, position)
if arr is not None:
call = arr.parent
while isinstance(call.parent, pr.StatementElement):
# Go to parent literal/variable until not possible anymore. This
# makes it possible to return the whole expression.
call = call.parent
arr.parent.execution = None
if not isinstance(call, pr.Call):
call = None
debug.speed('func_call parsed')
return call, index