* Get all nodes in a file
(filePath: string)
| 874 | * Get all nodes in a file |
| 875 | */ |
| 876 | getNodesByFile(filePath: string): Node[] { |
| 877 | if (!this.stmts.getNodesByFile) { |
| 878 | this.stmts.getNodesByFile = this.db.prepare( |
| 879 | 'SELECT * FROM nodes WHERE file_path = ? ORDER BY start_line' |
| 880 | ); |
| 881 | } |
| 882 | const rows = this.stmts.getNodesByFile.all(filePath) as NodeRow[]; |
| 883 | return rows.map(rowToNode); |
| 884 | } |
| 885 | |
| 886 | /** |
| 887 | * Find the file that holds the densest concentration of the project's |
no test coverage detected