Crate swc_ecma_visit
source ·Modules§
Macros§
- Note: Ignoring more types is not considered as a breaking change.
- Note: Ignoring more types is not considered as a breaking change.
- Note: Ignoring more types is not considered as a breaking change.
- Mark visitor as ECMAScript standard only and mark other types as unreachable.
- Mark visitor as ECMAScript standard only and mark other types as unreachable.
- Mark visitor as ECMAScript standard only and mark other types as unreachable.
Structs§
- Visit all children nodes. This converts
VisitAll
toVisit
. The type parameterV
should implementVisitAll
andAll<V>
implementsVisit
.
Enums§
Traits§
- A visitor trait for traversing the AST.
- Fold
AstPath path
A visitor trait for traversing the AST. - A trait implemented for types that can be visited using a visitor.
- Fold
With AstPath path
A trait implemented for types that can be visited using a visitor. - Implemented for passes which inject variables.
- A visitor trait for traversing the AST.
- Visit
AstPath path
A visitor trait for traversing the AST. - A visitor trait for traversing the AST.
- Visit
MutAst Path path
A visitor trait for traversing the AST. - A trait implemented for types that can be visited using a visitor.
- A trait implemented for types that can be visited using a visitor.
- A trait implemented for types that can be visited using a visitor.
- Visit
With AstPath path
A trait implemented for types that can be visited using a visitor.
Functions§
- The returned folder only handles
fold_script
andfold_module
, and typescript nodes are ignored. So if your visitor needs to handle typescript or low-level nodes, you should use as_folder instead. - Returns a
Fold
which changes all span intoDUMMY_SP
.