()
| 188 | current_argument = [] |
| 189 | i = 0 |
| 190 | def finish_arg(): |
| 191 | if current_argument: |
| 192 | argstr = ''.join(current_argument).strip() |
| 193 | m = re.match(r'(.*(\s+|\*))(\w+)$', argstr) |
| 194 | if m: |
| 195 | typename = m.group(1).strip() |
| 196 | name = m.group(3) |
| 197 | else: |
| 198 | typename = argstr |
| 199 | name = '' |
| 200 | arguments.append((typename, name)) |
| 201 | del current_argument[:] |
| 202 | while i < len(argstr): |
| 203 | c = argstr[i] |
| 204 | if c == ',': |
no test coverage detected