The offset after the last character before `at` that is not white space.
(text: string, at: number)
| 160 | |
| 161 | /** The offset after the last character before `at` that is not white space. */ |
| 162 | function codeEndBefore(text: string, at: number): number { |
| 163 | while (at > 0 && isSpace(text[at - 1])) at--; |
| 164 | return at; |
| 165 | } |
| 166 | |
| 167 | /** The name that ends at `end`, or null: `routes` of `routes.get(`, nothing of `request(app).get(`. */ |
| 168 | function nameEndingAt(text: string, end: number): { name: string; start: number } | null { |
no test coverage detected