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