Module swc_common::pass
source · [−]Expand description
This module reexports items from swc_visit
with some swc-specific traits.
Modules
Some utilities for generated visitors.
Macros
Structs
Visit all children nodes. This converts
VisitAll
to Visit
. The type
parameter V
should implement VisitAll
and All<V>
implements Visit
.A visitor which applies
A
and then B
.A visitor which visits node only if
enabled
is true.A visitor which applies
V
again and again if V
modifies the node.Enums
The enum
Either
with variants Left
and Right
is a general purpose
sum type with two cases.Traits
A named compiler pass.
Trait for a pass which is designed to invoked multiple time to same input.