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

Method capOrderOf

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

Source from the content-addressed store, hash-verified

8147 const isGenerated = cg.generatedFilePredicate(matches.map((n) => n.filePath));
8148 // Generated stubs stay behind every hand-written definition (findSymbolMatches).
8149 const capOrderOf = (nodes: Node[]): Node[] => [
8150 ...definitionCapOrder(nodes.filter((n) => !isGenerated(n.filePath))),
8151 ...definitionCapOrder(nodes.filter((n) => isGenerated(n.filePath))),
8152 ];
8153 const listLine = (n: Node) => `- \`${n.name}\` (${n.kind}) — ${n.filePath}:${n.startLine}`;
8154 const omittedLine = (omitted: Node[]) => `- … +${omitted.length} more: ${describeOmittedDefinitions(omitted)}`;
8155 if (!includeCode) {

Callers

nothing calls this directly

Calls 1

definitionCapOrderFunction · 0.85

Tested by

no test coverage detected