* Get all nodes in a file
(filePath: string)
| 531 | * Get all nodes in a file |
| 532 | */ |
| 533 | getNodesByFile(filePath: string): Node[] { |
| 534 | if (!this.stmts.getNodesByFile) { |
| 535 | this.stmts.getNodesByFile = this.db.prepare( |
| 536 | 'SELECT * FROM nodes WHERE file_path = ? ORDER BY start_line' |
| 537 | ); |
| 538 | } |
| 539 | const rows = this.stmts.getNodesByFile.all(filePath) as NodeRow[]; |
| 540 | return rows.map(rowToNode); |
| 541 | } |
| 542 | |
| 543 | /** |
| 544 | * Find the file that holds the densest concentration of the project's |
no test coverage detected