UNPKG

@coat/cli

Version:

TODO: See #3

10 lines (9 loc) 384 B
import { SourceLocation, Expression } from "@babel/types"; /** * Returns the source location of a property path inside a JSON AST. * * @param ast The JSON AST parsed by @babel/parser * @param path The property path within the JSON object * @returns The source location */ export declare function getLocationInJSONAst(ast: Expression, path: (string | number)[]): SourceLocation;