MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / constructor_space

Function constructor_space

codegraph-kernel/grammars/kotlin/scanner.c:647–651  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
647static 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
653static bool constructor_trivia(TSLexer *lexer, bool *newline) {
654 for (;;) {

Callers 3

constructor_triviaFunction · 0.85
constructor_word_charFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected