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

Method constructor

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

Source from the content-addressed store, hash-verified

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