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

Method groupDefinitions

src/mcp/tools.ts:3408–3413  ·  view source on GitHub ↗

* Group symbol matches into DISTINCT DEFINITIONS — one group per * (filePath, qualifiedName), so same-file overloads stay together while * unrelated same-named classes across a monorepo's apps (#764: one * `UserService` per NestJS app) are kept apart. Optionally narrowed by a * `file` pa

(
    nodes: Node[],
    fileFilter: string | undefined
  )

Source from the content-addressed store, hash-verified

3406 * `file` path/suffix first.
3407 */
3408 private groupDefinitions(
3409 nodes: Node[],
3410 fileFilter: string | undefined
3411 ): { groups: Node[][]; filteredOut: boolean } {
3412 return groupDefinitions(nodes, fileFilter);
3413 }
3414
3415 /** Section heading for one distinct definition in grouped output. */
3416 private definitionHeading(group: Node[]): string {

Callers 3

handleCallersMethod · 0.95
handleCalleesMethod · 0.95
handleImpactMethod · 0.95

Calls 1

groupDefinitionsFunction · 0.90

Tested by

no test coverage detected