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

Function extract

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

Source from the content-addressed store, hash-verified

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

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