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

Function constructor_word_char

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

Read complete identifiers, including non-ASCII continuations. Only an entirely ASCII word can be a modifier/constructor keyword. The generated lexer still validates Unicode identifiers; this probe never emits them.

Source from the content-addressed store, hash-verified

679// entirely ASCII word can be a modifier/constructor keyword. The generated
680// lexer still validates Unicode identifiers; this probe never emits them.
681static bool constructor_word_char(int32_t c) {
682 if (c < 128) return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') ||
683 (c >= '0' && c <= '9') || c == '_';
684 return !constructor_space(c);
685}
686
687// C-locale iswalnum can miss Unicode identifier suffixes. A context keyword
688// probe must not turn catché/finallyé into a clause; only wholly ASCII words

Callers 9

scan_try_clause_keywordFunction · 0.85
constructor_wordFunction · 0.85
constructor_annotationFunction · 0.85
trailing_lambda_followsFunction · 0.85
asi_after_commentFunction · 0.85
scan_automatic_semicolonFunction · 0.85
scan_tokenFunction · 0.85

Calls 1

constructor_spaceFunction · 0.85

Tested by

no test coverage detected