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

Function methodIn

src/resolution/frameworks/laravel.ts:598–599  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

596): string | null {
597 const rel = controller.replace(/\\/g, '/');
598 const methodIn = (filePath: string): string | null =>
599 context.getNodesInFile(filePath).find((n) => n.kind === 'method' && n.name === method)?.id ?? null;
600
601 const controllerPath = `app/Http/Controllers/${rel}.php`;
602 if (context.fileExists(controllerPath)) {

Callers 1

resolveControllerMethodFunction · 0.70

Calls 1

getNodesInFileMethod · 0.65

Tested by

no test coverage detected