MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / constructor

Method constructor

src/index.ts:220–234  ·  view source on GitHub ↗
(
    db: DatabaseConnection,
    queries: QueryBuilder,
    projectRoot: string,
    rebuildLock?: FileLock
  )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

wireLayersMethod · 0.95
getCodeGraphDirFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected