mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
92cfb14aa4
Fix a mistake in our (internal) types: `walkProgramWithCfg` was missing that elements can be `CfgVisitFn`. Also refactor the types for `walkProgram`, importing the original `VisitFn` and `EnterExit` types from where they're defined.
11 lines
448 B
TypeScript
11 lines
448 B
TypeScript
// Auto-generated code, DO NOT EDIT DIRECTLY!
|
|
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/estree_visit.rs`.
|
|
|
|
import type { Node, Program } from "./types.d.ts";
|
|
import type { VisitFn, EnterExit } from "../plugins/visitor.ts";
|
|
|
|
type CompiledVisitors = (VisitFn | EnterExit | null)[];
|
|
|
|
export declare function walkProgram(program: Program, visitors: CompiledVisitors): void;
|
|
export declare const ancestors: Node[];
|