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

Function layout

src/resolution/frameworks/react.ts:1371–1371  ·  view source on GitHub ↗
(c: RouteScope)

Source from the content-addressed store, hash-verified

1369 };
1370 const pages = new Set(scopes.filter((s) => !s.pathless && !s.opaque && (s.jsx || s.outlet || renders(s)) && addressed(s)));
1371 const layout = (c: RouteScope): boolean => renders(c) && !c.opaque;
1372 const routes: RouteDeclaration[] = [];
1373 for (const scope of pages) {
1374 const path = pathOf.get(scope)!;

Callers 1

scanRoutesFunction · 0.70

Calls 1

rendersFunction · 0.70

Tested by

no test coverage detected