MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / spawn_code_label

Function spawn_code_label

src/pipeline/pass_spawns.c:38–47  ·  view source on GitHub ↗

Labels of code a call can run: a function, or a type it constructs. */

Source from the content-addressed store, hash-verified

36
37/* Labels of code a call can run: a function, or a type it constructs. */
38static bool spawn_code_label(const char *label) {
39 static const char *const labels[] = {"Function", "Method", "Class", "Struct", "Interface",
40 "Trait", "Enum", "Type", "Macro", NULL};
41 for (int i = 0; label && labels[i]; i++) {
42 if (strcmp(label, labels[i]) == 0) {
43 return true;
44 }
45 }
46 return false;
47}
48
49/* The call reached code in the project's own sources. A synthetic builtin
50 * (a `<python-builtins>` node), a QN without a node, and a Variable are not:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected