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

Method constructor

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

Source from the content-addressed store, hash-verified

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`

Callers

nothing calls this directly

Calls 3

wireLayersMethod · 0.95
getCodeGraphDirFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected