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

Function find_module_def

tests/test_extraction.c:5189–5196  ·  view source on GitHub ↗

Return the file's Module definition (extraction pushes it first), or NULL. */

Source from the content-addressed store, hash-verified

5187
5188/* Return the file's Module definition (extraction pushes it first), or NULL. */
5189static const CBMDefinition *find_module_def(CBMFileResult *r) {
5190 for (int i = 0; i < r->defs.count; i++) {
5191 if (r->defs.items[i].label && strcmp(r->defs.items[i].label, "Module") == 0) {
5192 return &r->defs.items[i];
5193 }
5194 }
5195 return NULL;
5196}
5197
5198/* Blazor: a routable component declares its route with a `@page` directive in
5199 * MARKUP, above the `@code` block. The C# grammar recovers `@code` (that is why

Callers 1

test_extraction.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected