MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / listSymbolsInFile

Method listSymbolsInFile

src/codegraph/schema.ts:198–205  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

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 {

Callers 2

codegraph.test.tsFile · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected