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

Function around

src/resolution/frameworks/react.ts:1349–1350  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

1347 const renders = (s: RouteScope): boolean => Boolean(s.component || s.lazy);
1348 const holds = (outer: RouteScope, start: number, end: number): boolean => outer.start < start && outer.end >= end;
1349 const around = (start: number, end: number): RouteScope[] =>
1350 scopes.filter((outer) => holds(outer, start, end)).sort((a, b) => a.start - b.start);
1351 const shown = (p: RoutePart): string => p.lit ?? `{${p.expr}}`;
1352 const layoutOf = (s: RouteScope): string => (s.component ?? s.lazy)!;
1353 const partsOf = new Map<RouteScope, RoutePart[]>();

Callers 4

scanRoutesFunction · 0.85
addressedFunction · 0.85
mountFunction · 0.85
visibleAtFunction · 0.85

Calls 1

holdsFunction · 0.70

Tested by

no test coverage detected