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

Function lastSegment

src/ui-server/api/filecode.ts:294–297  ·  view source on GitHub ↗

The trailing segment of a dotted name — what actually appears in the source.

(name: string)

Source from the content-addressed store, hash-verified

292
293/** The trailing segment of a dotted name — what actually appears in the source. */
294function lastSegment(name: string): string {
295 const dot = name.lastIndexOf('.');
296 return dot < 0 ? name : name.slice(dot + 1);
297}

Callers 1

buildOutsideRefsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected