(
db: DatabaseConnection,
queries: QueryBuilder,
projectRoot: string,
rebuildLock?: FileLock
)
| 219 | private deferredSynthesisTimer: NodeJS.Timeout | null = null; |
| 220 | |
| 221 | private constructor( |
| 222 | db: DatabaseConnection, |
| 223 | queries: QueryBuilder, |
| 224 | projectRoot: string, |
| 225 | rebuildLock?: FileLock |
| 226 | ) { |
| 227 | this.db = db; |
| 228 | this.queries = queries; |
| 229 | this.projectRoot = projectRoot; |
| 230 | this.fileLock = rebuildLock ?? new FileLock( |
| 231 | path.join(getCodeGraphDir(projectRoot), 'codegraph.lock') |
| 232 | ); |
| 233 | this.hasRebuildLock = rebuildLock !== undefined; |
| 234 | this.wireLayers(); |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * (Re)build the query/extraction/graph layers over the current `this.queries` |
nothing calls this directly
no test coverage detected