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

Method constructor

src/extraction/tree-sitter.ts:370–376  ·  view source on GitHub ↗
(filePath: string, source: string, language?: Language)

Source from the content-addressed store, hash-verified

368 private vueStoreFile: boolean | null = null;
369
370 constructor(filePath: string, source: string, language?: Language) {
371 this.filePath = filePath;
372 this.source = source;
373 this.language = language || detectLanguage(filePath, source);
374 this.extractor = EXTRACTORS[this.language] || null;
375 this.fnRefSpec = FN_REF_SPECS[this.language];
376 }
377
378 /**
379 * Parse and extract from the source code

Callers

nothing calls this directly

Calls 1

detectLanguageFunction · 0.90

Tested by

no test coverage detected