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

Function extract

__tests__/codeigniter.test.ts:14–14  ·  view source on GitHub ↗
(file: string, source: string)

Source from the content-addressed store, hash-verified

12import type { ResolutionContext } from '../src/resolution/types';
13
14const extract = (file: string, source: string) => codeigniterResolver.extract!(file, source);
15const routeNames = (file: string, source: string): string[] => extract(file, source).nodes.map((n) => n.name);
16
17describe('routes from a controller', () => {

Callers 1

routeNamesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected