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

Function extract

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

Source from the content-addressed store, hash-verified

9});
10
11const extract = (source: string) => extractFromSource('Demo.pas', source, 'pascal');
12const routines = (source: string) => extract(source).nodes.filter(n => n.kind === 'method' || n.kind === 'function');
13function body(source: string, node: Node): string {
14 const lines = source.split('\n').slice(node.startLine - 1, node.endLine);

Callers 2

routinesFunction · 0.70

Calls 1

extractFromSourceFunction · 0.90

Tested by

no test coverage detected