fix the CallSignature.index attribute

This commit is contained in:
Dave Halter committed 2014-05-04 23:36:24 +02:00
1 parent a4b9ccc2e7
commit f2af053a4a
4 files changed
+57 -22

No files matched your search

-7
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