Whether a comment starts at `i`.
(s: string, i: number)
| 176 | |
| 177 | /** Whether a comment starts at `i`. */ |
| 178 | function isCommentStart(s: string, i: number): boolean { |
| 179 | const c = s.charCodeAt(i); |
| 180 | return c === CH_LBRACE || (c === CH_LPAREN && s.charCodeAt(i + 1) === CH_STAR) || (c === CH_SLASH && s.charCodeAt(i + 1) === CH_SLASH); |
| 181 | } |
| 182 | |
| 183 | /** The index of the first character from `i` that is neither whitespace nor in a comment. */ |
| 184 | function skipTrivia(s: string, i: number): number { |
no outgoing calls
no test coverage detected