The methods of a file, as `qualifiedName:line`.
(cg: CodeGraph, file: string)
| 46 | |
| 47 | /** The methods of a file, as `qualifiedName:line`. */ |
| 48 | function methodsIn(cg: CodeGraph, file: string): string[] { |
| 49 | return cg.getNodesByKind('method').filter((n) => n.filePath === file).map((n) => `${n.qualifiedName}:${n.startLine}`).sort(); |
| 50 | } |
| 51 | |
| 52 | const lines = (...l: string[]): string => [...l, ''].join('\n'); |
| 53 |
no test coverage detected