Probe only while the grammar can start a primary constructor. The hidden hint commits that alternative before trivia/modifiers are lexed, so every ASI path sees the same decision without changing comment token boundaries. Probes use advance(), never skip(): a zero-width hint/semicolon stays at the original mark even after looking through comments and annotation args.
| 645 | // Probes use advance(), never skip(): a zero-width hint/semicolon stays at |
| 646 | // the original mark even after looking through comments and annotation args. |
| 647 | static bool constructor_space(int32_t c) { |
| 648 | return c == ' ' || (c >= '\t' && c <= '\r') || c == 0x85 || c == 0xa0 || |
| 649 | c == 0x1680 || (c >= 0x2000 && c <= 0x200a) || c == 0x2028 || |
| 650 | c == 0x2029 || c == 0x202f || c == 0x205f || c == 0x3000; |
| 651 | } |
| 652 | |
| 653 | static bool constructor_trivia(TSLexer *lexer, bool *newline) { |
| 654 | for (;;) { |
no outgoing calls
no test coverage detected