(source: string, node: Node)
| 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'); |
| 26 | } |
| 27 | /** The qualified name of the routine a call of `name` is made from, or the file's name. */ |
| 28 | function callerOf(source: string, name: string): string | undefined { |
| 29 | const result = extract(source); |
no test coverage detected