MCPcopy
hub / github.com/colbymchenry/codegraph / lastQualifierPart

Function lastQualifierPart

src/mcp/tools.ts:93–96  ·  view source on GitHub ↗

Last `::` / `.` / `/`-separated segment of a qualified symbol.

(symbol: string)

Source from the content-addressed store, hash-verified

91
92/** Last `::` / `.` / `/`-separated segment of a qualified symbol. */
93function lastQualifierPart(symbol: string): string {
94 const parts = symbol.split(/::|[./]/).filter((p) => p.length > 0);
95 return parts[parts.length - 1] ?? symbol;
96}
97
98/**
99 * Calculate the recommended number of codegraph_explore calls based on project size.

Callers 2

findSymbolMatchesMethod · 0.85
findAllSymbolsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected