* Extract nodes and edges from source code (without storing)
(filePath: string, source: string)
| 2251 | * Extract nodes and edges from source code (without storing) |
| 2252 | */ |
| 2253 | extractFromSource(filePath: string, source: string): ExtractionResult { |
| 2254 | // The project root is what tells a Shopify theme's JSON templates (Liquid) |
| 2255 | // apart from other JSON. |
| 2256 | return engine().extractFromSource(filePath, source, detectLanguage(filePath, source, undefined, this.projectRoot)); |
| 2257 | } |
| 2258 | |
| 2259 | // =========================================================================== |
| 2260 | // Reference Resolution |