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

Function extract

src/resolution/frameworks/codeigniter.ts:321–327  ·  view source on GitHub ↗
(filePath: string, content: string)

Source from the content-addressed store, hash-verified

319 },
320
321 extract(filePath: string, content: string): { nodes: Node[]; references: UnresolvedRef[] } {
322 const routes = ROUTES_FILE.test(filePath);
323 const baseUrl = routes ? null : controllerUrl(filePath);
324 if (!routes && baseUrl === null) return { nodes: [], references: [] };
325 const safe = stripCommentsForRegex(content, 'php');
326 return routes ? explicitRoutes(filePath, safe) : conventionRoutes(filePath, baseUrl!, safe);
327 },
328};

Callers

nothing calls this directly

Calls 4

stripCommentsForRegexFunction · 0.90
controllerUrlFunction · 0.85
explicitRoutesFunction · 0.85
conventionRoutesFunction · 0.85

Tested by

no test coverage detected