版博士V2.0程序
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.
 
 
 
 

12 lines
582 B

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