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

Function lastQualifierPart

src/mcp/tools.ts:105–108  ·  view source on GitHub ↗

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

(symbol: string)

Source from the content-addressed store, hash-verified

103
104/** Last `::` / `.` / `/`-separated segment of a qualified symbol. */
105function lastQualifierPart(symbol: string): string {
106 const parts = symbol.split(/::|[./]/).filter((p) => p.length > 0);
107 return parts[parts.length - 1] ?? symbol;
108}
109
110/**
111 * Normalize Erlang-native symbol spellings in an explore query into the shapes

Callers 2

findSymbolMatchesMethod · 0.85
findAllSymbolsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected