ImportAST fetches the Jsonnet AST just as if it was imported from a Jsonnet file located at `importedFrom`. It shares the cache with the actual evaluation.
(importedFrom, importedPath string)
| 577 | // ImportAST fetches the Jsonnet AST just as if it was imported from a Jsonnet file located at `importedFrom`. |
| 578 | // It shares the cache with the actual evaluation. |
| 579 | func (vm *VM) ImportAST(importedFrom, importedPath string) (contents ast.Node, foundAt string, err error) { |
| 580 | return vm.importCache.importAST(importedFrom, importedPath) |
| 581 | } |
| 582 | |
| 583 | // SnippetToAST parses a snippet and returns the resulting AST. |
| 584 | func SnippetToAST(filename string, snippet string) (ast.Node, error) { |
no test coverage detected