You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

11 lines
582 B

import type { VisitorKeys } from "eslint-visitor-keys";
import type { JSONNode } from "./ast";
export declare function getFallbackKeys(node: JSONNode): string[];
export declare function getKeys(node: JSONNode, visitorKeys?: VisitorKeys): string[];
export declare function getNodes(node: any, key: string): IterableIterator<JSONNode>;
export interface Visitor<N> {
visitorKeys?: VisitorKeys;
enterNode(node: N, parent: N | null): void;
leaveNode(node: N, parent: N | null): void;
}
export declare function traverseNodes(node: JSONNode, visitor: Visitor<JSONNode>): void;