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

Function namesSomewhere

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

Source from the content-addressed store, hash-verified

866 * hole scores against a literal segment — so it names nothing.
867 */
868export function namesSomewhere(href: HrefLiteral | null): HrefLiteral | null {
869 if (!href) return null;
870 const segs = href.path.split('/').filter((seg) => seg.length > 0);
871 return segs.length === 0 || segs.some((seg) => !seg.includes(HOLE)) ? href : null;
872}
873
874/** A class property's initializer, read from its body: `routerLinkAbout = publicRoutes.about.routerLink;`. */
875export 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