Class VisitorAbstract

A read-only visitor.

Subclasses can be used to gather information from an AST.

To handle specific node types add methods like visitPattern. Then, to descend into children call genericVisit.

Visiting methods must implement the following interface:

interface VisitingMethod {
(this: Visitor, node: AST.BaseNode): void;
}

Hierarchy

Indexable

[prop: string]: unknown

Constructors

Methods