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

Method constructor

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

Source from the content-addressed store, hash-verified

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