some operator support for '*'

This commit is contained in:
David Halter committed 2012-10-04 01:31:57 +02:00
1 parent 7e39a7d1ba
commit 8795b4fbac
3 files changed
+21 -1

No files matched your search

+6
View File
@@ -1401,6 +1401,12 @@ def follow_call_list(call_list):
pass
continue
result += follow_call(call)
elif call == '*':
if [r for r in result if isinstance(r, Array)
or isinstance(r, Instance)
and str(r.name) == 'str']:
# if it is an iterable, ignore * operations
next(calls_iterator)
return set(result)