(tok, arguments)
| 28 | |
| 29 | # Get function arguments |
| 30 | def getArgumentsRecursive(tok, arguments): |
| 31 | if tok is None: |
| 32 | return |
| 33 | if tok.str == ',': |
| 34 | getArgumentsRecursive(tok.astOperand1, arguments) |
| 35 | getArgumentsRecursive(tok.astOperand2, arguments) |
| 36 | else: |
| 37 | arguments.append(tok) |
| 38 | |
| 39 | def getArguments(ftok): |
| 40 | arguments = [] |