* Get all nodes in a file
(filePath: string)
| 918 | * Get all nodes in a file |
| 919 | */ |
| 920 | getNodesByFile(filePath: string): Node[] { |
| 921 | if (!this.stmts.getNodesByFile) { |
| 922 | this.stmts.getNodesByFile = this.db.prepare( |
| 923 | 'SELECT * FROM nodes WHERE file_path = ? ORDER BY start_line' |
| 924 | ); |
| 925 | } |
| 926 | const rows = this.stmts.getNodesByFile.all(filePath) as NodeRow[]; |
| 927 | return rows.map(rowToNode); |
| 928 | } |
| 929 | |
| 930 | /** |
| 931 | * Find the file that holds the densest concentration of the project's |
no test coverage detected