(param)
| 15 | |
| 16 | |
| 17 | def parseNode(param): |
| 18 | if len(param) is 0: |
| 19 | return |
| 20 | |
| 21 | first = Node(param[0], []) |
| 22 | arr = [first] |
| 23 | |
| 24 | for i, val in enumerate(param): |
| 25 | if i is 0: |
| 26 | continue |
| 27 | |
| 28 | if i is 1: |
| 29 | continue |
| 30 | |
| 31 | top = arr[0] |
| 32 | if val is None: |
| 33 | arr.pop(0) |
| 34 | else: |
| 35 | child = Node(val, []) |
| 36 | top.children.append(child) |
| 37 | arr.append(child) |
| 38 | |
| 39 | return first |
| 40 | |
| 41 | |
| 42 | def parseSpecialParameter(index, paramType, param): |
no test coverage detected