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