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