MCPcopy
hub / github.com/colbymchenry/codegraph / constructor

Method constructor

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

Source from the content-addressed store, hash-verified

151 private watcher: FileWatcher | null = null;
152
153 private constructor(
154 db: DatabaseConnection,
155 queries: QueryBuilder,
156 projectRoot: string
157 ) {
158 this.db = db;
159 this.queries = queries;
160 this.projectRoot = projectRoot;
161 this.fileLock = new FileLock(
162 path.join(getCodeGraphDir(projectRoot), 'codegraph.lock')
163 );
164 this.wireLayers();
165 }
166
167 /**
168 * (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.80

Tested by

no test coverage detected