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

Method constructor

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

Source from the content-addressed store, hash-verified

161 private watcher: FileWatcher | null = null;
162
163 private constructor(
164 db: DatabaseConnection,
165 queries: QueryBuilder,
166 projectRoot: string
167 ) {
168 this.db = db;
169 this.queries = queries;
170 this.projectRoot = projectRoot;
171 this.fileLock = new FileLock(
172 path.join(getCodeGraphDir(projectRoot), 'codegraph.lock')
173 );
174 this.wireLayers();
175 }
176
177 /**
178 * (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