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

Function constructor_modifier

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

Source from the content-addressed store, hash-verified

705}
706
707static bool constructor_modifier(const char *word) {
708 static const char *const words[] = {
709 "public", "private", "protected", "internal", "actual", "expect",
710 "final", "open", "abstract", "sealed", "const", "override", "lateinit",
711 "tailrec", "operator", "infix", "inline", "external", "suspend", "data",
712 "inner", "value", "annotation", "noinline", "crossinline", "vararg"
713 };
714 for (unsigned i = 0; i < sizeof(words) / sizeof(words[0]); i++)
715 if (strcmp(word, words[i]) == 0) return true;
716 return false;
717}
718
719typedef struct { char end; char kind; unsigned dollars; } ConstructorProbeFrame;
720typedef Array(ConstructorProbeFrame) ConstructorProbeStack;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected