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

Method extractFromSource

src/index.ts:2304–2308  ·  view source on GitHub ↗

* Extract nodes and edges from source code (without storing)

(filePath: string, source: string)

Source from the content-addressed store, hash-verified

2302 * Extract nodes and edges from source code (without storing)
2303 */
2304 extractFromSource(filePath: string, source: string): ExtractionResult {
2305 // The project root is what tells a Shopify theme's JSON templates (Liquid)
2306 // apart from other JSON.
2307 return engine().extractFromSource(filePath, source, detectLanguage(filePath, source, undefined, this.projectRoot));
2308 }
2309
2310 // ===========================================================================
2311 // Reference Resolution

Callers 1

refsOfFunction · 0.80

Calls 2

engineFunction · 0.90
detectLanguageFunction · 0.90

Tested by 1

refsOfFunction · 0.64