* Get all nodes in a file
(filePath: string)
| 1331 | * Get all nodes in a file |
| 1332 | */ |
| 1333 | getNodesByFile(filePath: string): Node[] { |
| 1334 | if (!this.stmts.getNodesByFile) { |
| 1335 | this.stmts.getNodesByFile = prepareNodeStatement( |
| 1336 | this.db, |
| 1337 | 'SELECT * FROM nodes WHERE file_path = ? ORDER BY start_line, id' |
| 1338 | ); |
| 1339 | } |
| 1340 | return this.stmts.getNodesByFile.all(filePath); |
| 1341 | } |
| 1342 | |
| 1343 | /** |
| 1344 | * The {@link NodeIdentity} of every node in a file, without decoding whole |
no test coverage detected