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

Method constructor

src/index.ts:219–231  ·  view source on GitHub ↗
(
    db: DatabaseConnection,
    queries: QueryBuilder,
    projectRoot: string
  )

Source from the content-addressed store, hash-verified

217 private deferredSynthesisTimer: NodeJS.Timeout | null = null;
218
219 private constructor(
220 db: DatabaseConnection,
221 queries: QueryBuilder,
222 projectRoot: string
223 ) {
224 this.db = db;
225 this.queries = queries;
226 this.projectRoot = projectRoot;
227 this.fileLock = new FileLock(
228 path.join(getCodeGraphDir(projectRoot), 'codegraph.lock')
229 );
230 this.wireLayers();
231 }
232
233 /**
234 * (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