* Extract nodes and edges from source code (without storing)
(filePath: string, source: string)
| 2325 | * Extract nodes and edges from source code (without storing) |
| 2326 | */ |
| 2327 | extractFromSource(filePath: string, source: string): ExtractionResult { |
| 2328 | // The project root is what tells a Shopify theme's JSON templates (Liquid) |
| 2329 | // apart from other JSON. |
| 2330 | return engine().extractFromSource(filePath, source, detectLanguage(filePath, source, undefined, this.projectRoot)); |
| 2331 | } |
| 2332 | |
| 2333 | // =========================================================================== |
| 2334 | // Reference Resolution |