'f'
mh-two-thousand-and-two
2024-04-12 26f2711ef9461961fb953e2b497bd314ef95e345
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { ASTNode, Fork, Omit } from "./types";
import { NodePath } from "./node-path";
export interface PathVisitor {
    _reusableContextStack: any;
    _methodNameTable: any;
    _shouldVisitComments: any;
    Context: any;
    _visiting: any;
    _changeReported: any;
    _abortRequested: boolean;
    visit(...args: any[]): any;
    reset(...args: any[]): any;
    visitWithoutReset(path: any): any;
    AbortRequest: any;
    abort(): void;
    visitor: any;
    acquireContext(path: any): any;
    releaseContext(context: any): void;
    reportChanged(): void;
    wasChangeReported(): any;
}
export interface PathVisitorStatics {
    fromMethodsObject(methods?: any): Visitor;
    visit<M = {}>(node: ASTNode, methods?: import("./gen/visitor").Visitor<M>): any;
}
export interface PathVisitorConstructor extends PathVisitorStatics {
    new (): PathVisitor;
}
export interface Visitor extends PathVisitor {
}
export interface VisitorConstructor extends PathVisitorStatics {
    new (): Visitor;
}
export interface VisitorMethods {
    [visitorMethod: string]: (path: NodePath) => any;
}
export interface SharedContextMethods {
    currentPath: any;
    needToCallTraverse: boolean;
    Context: any;
    visitor: any;
    reset(path: any, ...args: any[]): any;
    invokeVisitorMethod(methodName: string): any;
    traverse(path: any, newVisitor?: VisitorMethods): any;
    visit(path: any, newVisitor?: VisitorMethods): any;
    reportChanged(): void;
    abort(): void;
}
export interface Context extends Omit<PathVisitor, "visit" | "reset">, SharedContextMethods {
}
export default function pathVisitorPlugin(fork: Fork): PathVisitorConstructor;