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