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

Method constructor

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

Source from the content-addressed store, hash-verified

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