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

Function extract

__tests__/pascal-implementation-matching.test.ts:22–22  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

20});
21
22const extract = (source: string) => extractFromSource('Demo.pas', source, 'pascal');
23const routines = (source: string) => extract(source).nodes.filter((n) => n.kind === 'method' || n.kind === 'function');
24function body(source: string, node: Node): string {
25 return source.split('\n').slice(node.startLine - 1, node.endLine).join('\n');

Callers 3

routinesFunction · 0.70
callerOfFunction · 0.70

Calls 1

extractFromSourceFunction · 0.90

Tested by

no test coverage detected