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

Function constructor_word

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

Source from the content-addressed store, hash-verified

693}
694
695static bool constructor_word(TSLexer *lexer, char *word, unsigned capacity) {
696 unsigned length = 0;
697 bool ascii = true;
698 while (!lexer->eof(lexer) && constructor_word_char(lexer->lookahead)) {
699 if (lexer->lookahead >= 128 || length + 1 >= capacity) ascii = false;
700 if (length + 1 < capacity) word[length++] = (char)lexer->lookahead;
701 advance(lexer);
702 }
703 word[length] = '\0';
704 return ascii && length > 0;
705}
706
707static bool constructor_modifier(const char *word) {
708 static const char *const words[] = {

Callers 4

constructor_annotationFunction · 0.85
trailing_lambda_followsFunction · 0.85

Calls 2

constructor_word_charFunction · 0.85
advanceFunction · 0.70

Tested by

no test coverage detected