(s: string)
| 784 | } |
| 785 | |
| 786 | function parseRouteObjects(s: string): RouteItem[] { |
| 787 | const items: RouteItem[] = []; |
| 788 | for (const obj of splitTopLevelObjects(s)) { |
| 789 | const path = parseStringField(obj, 'path'); |
| 790 | const moduleName = parseIdentField(obj, 'module'); |
| 791 | const childrenStr = parseArrayField(obj, 'children'); |
| 792 | const children = childrenStr ? parseRouteObjects(childrenStr) : []; |
| 793 | items.push({ path, moduleName, children }); |
| 794 | } |
| 795 | return items; |
| 796 | } |
| 797 | |
| 798 | function walkRoutesTree( |
| 799 | items: RouteItem[], |
no test coverage detected