CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
parse-ast-index.d.mts32 linesDownload Raw Back to dist
1import { L as ParseResult$1, R as ParserOptions$1 } from "./shared/binding-B1q9aYT-.mjs";2import { Program } from "@oxc-project/types";3 4//#region src/parse-ast-index.d.ts5/**6* @hidden7*/8type ParseResult = ParseResult$1;9/**10* @hidden11*/12type ParserOptions = ParserOptions$1;13/**14* Parse code synchronously and return the AST.15*16* This function is similar to Rollup's `parseAst` function.17* Prefer using {@linkcode parseSync} instead of this function as it has more information in the return value.18*19* @category Utilities20*/21declare function parseAst(sourceText: string, options?: ParserOptions | null, filename?: string): Program;22/**23* Parse code asynchronously and return the AST.24*25* This function is similar to Rollup's `parseAstAsync` function.26* Prefer using {@linkcode parseAsync} instead of this function as it has more information in the return value.27*28* @category Utilities29*/30declare function parseAstAsync(sourceText: string, options?: ParserOptions | null, filename?: string): Promise<Program>;31//#endregion32export { ParseResult, ParserOptions, parseAst, parseAstAsync };