(filePath: string, line: number, verb: string, routePath: string, now: number)
| 96 | } |
| 97 | |
| 98 | function routeNode(filePath: string, line: number, verb: string, routePath: string, now: number): Node { |
| 99 | return { |
| 100 | id: `route:${filePath}:${line}:${verb}:${routePath}`, |
| 101 | kind: 'route', |
| 102 | name: `${verb} ${routePath}`, |
| 103 | qualifiedName: `${filePath}::route:${verb}:${routePath}`, |
| 104 | filePath, |
| 105 | startLine: line, |
| 106 | endLine: line, |
| 107 | startColumn: 0, |
| 108 | endColumn: 0, |
| 109 | language: 'php', |
| 110 | updatedAt: now, |
| 111 | }; |
| 112 | } |
| 113 | |
| 114 | /** Each public method of the class a controller file is named after, as a route. */ |
| 115 | function conventionRoutes(filePath: string, baseUrl: string, safe: string): { nodes: Node[]; references: UnresolvedRef[] } { |
no outgoing calls
no test coverage detected