(filePath: string)
| 196 | } |
| 197 | |
| 198 | listSymbolsInFile(filePath: string): SymbolRow[] { |
| 199 | return this.db.prepare(` |
| 200 | SELECT symbols.* FROM symbols |
| 201 | JOIN files ON files.id = symbols.file_id |
| 202 | WHERE files.path = ? |
| 203 | ORDER BY symbols.start_line |
| 204 | `).all(filePath) as SymbolRow[]; |
| 205 | } |
| 206 | |
| 207 | /** Look up a symbol by its primary-key id (used for resolving parent_symbol_id chains). */ |
| 208 | getSymbolById(id: number): SymbolRow | null { |
no outgoing calls
no test coverage detected