The index of the first character from `i` that is neither whitespace nor in a comment, stopping at a conditional group's opening directive.
(s: string, i: number, groupAt: ReadonlyMap<number, ConditionalGroup>)
| 575 | |
| 576 | /** The index of the first character from `i` that is neither whitespace nor in a comment, stopping at a conditional group's opening directive. */ |
| 577 | function skipTriviaToGroup(s: string, i: number, groupAt: ReadonlyMap<number, ConditionalGroup>): number { |
| 578 | while (i < s.length) { |
| 579 | if (isSpace(s.charCodeAt(i))) i++; |
| 580 | else if (isCommentStart(s, i) && !groupAt.has(i)) i = commentOrStringEnd(s, i); |
| 581 | else break; |
| 582 | } |
| 583 | return i; |
| 584 | } |
| 585 | |
| 586 | /** |
| 587 | * From `i`, the index after a routine header's `;`, blank the directives of |
no test coverage detected