better support for get_in_function_call

This commit is contained in:
David Halter
2012-10-07 21:43:27 +02:00
parent 8c6f809a86
commit db315f44f4
3 changed files with 12 additions and 3 deletions

View File

@@ -408,12 +408,16 @@ class Script(object):
# call should return without execution and
# next
reset = c or s
if reset.execution.type not in \
[parsing.Array.TUPLE,
parsing.Array.NOARRAY]:
return start_s, index, False
reset.execution = None
reset.next = None
return c or start_s, index, True
#else:
#return call, index, stop
s = s.next
# The third return is just necessary for recursion inside, because
# it needs to know when to stop iterating.
return call, index, stop