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

Function namesSomewhere

src/resolution/frameworks/angular-router.ts:840–844  ·  view source on GitHub ↗
(href: HrefLiteral | null)

Source from the content-addressed store, hash-verified

838 * hole scores against a literal segment — so it names nothing.
839 */
840export function namesSomewhere(href: HrefLiteral | null): HrefLiteral | null {
841 if (!href) return null;
842 const segs = href.path.split('/').filter((seg) => seg.length > 0);
843 return segs.length === 0 || segs.some((seg) => !seg.includes(HOLE)) ? href : null;
844}
845
846/** A class property's initializer, read from its body: `routerLinkAbout = publicRoutes.about.routerLink;`. */
847export function propertyInitializer(owner: Node, name: string, content: string): string | null {

Callers 3

plainHrefFunction · 0.90
commandsHrefFunction · 0.85
angularDestinationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected