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
446 B
TypeScript
11 lines
446 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 * as ESTree from "@oxc-project/types";
|
|
|
|
type VisitFn = (node: ESTree.Node) => void;
|
|
type EnterExit = { enter: VisitFn; exit: VisitFn };
|
|
type CompiledVisitors = (VisitFn | EnterExit | null)[];
|
|
|
|
export declare function walkProgram(program: ESTree.Program, visitors: CompiledVisitors): void;
|