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

Method capOrderOf

src/mcp/tools.ts:8296–8299  ·  view source on GitHub ↗
(nodes: Node[])

Source from the content-addressed store, hash-verified

8294 const isGenerated = cg.generatedFilePredicate(matches.map((n) => n.filePath));
8295 // Generated stubs stay behind every hand-written definition (findSymbolMatches).
8296 const capOrderOf = (nodes: Node[]): Node[] => [
8297 ...definitionCapOrder(nodes.filter((n) => !isGenerated(n.filePath))),
8298 ...definitionCapOrder(nodes.filter((n) => isGenerated(n.filePath))),
8299 ];
8300 const listLine = (n: Node) => `- \`${n.name}\` (${n.kind}) — ${n.filePath}:${n.startLine}`;
8301 const omittedLine = (omitted: Node[]) => `- … +${omitted.length} more: ${describeOmittedDefinitions(omitted)}`;
8302 if (!includeCode) {

Callers

nothing calls this directly

Calls 1

definitionCapOrderFunction · 0.85

Tested by

no test coverage detected