swc_core::common::pass

Trait CompilerPass

pub trait CompilerPass {
    // Required method
    fn name(&self) -> Cow<'static, str>;
}
Available on crate feature __common only.
Expand description

A named compiler pass.

Required Methods§

fn name(&self) -> Cow<'static, str>

  • name should follow hyphen-case.
  • an implementation should return same name

Implementations on Foreign Types§

§

impl<A, B> CompilerPass for (A, B)

§

fn name(&self) -> Cow<'static, str>

§

impl<A, B, C> CompilerPass for (A, B, C)

§

fn name(&self) -> Cow<'static, str>

§

impl<A, B, C, D> CompilerPass for (A, B, C, D)

§

fn name(&self) -> Cow<'static, str>

§

impl<A, B, C, D, E> CompilerPass for (A, B, C, D, E)

§

fn name(&self) -> Cow<'static, str>

§

impl<A, B, C, D, E, F> CompilerPass for (A, B, C, D, E, F)

§

fn name(&self) -> Cow<'static, str>

§

impl<A, B, C, D, E, F, G> CompilerPass for (A, B, C, D, E, F, G)

§

fn name(&self) -> Cow<'static, str>

§

impl<A, B, C, D, E, F, G, H> CompilerPass for (A, B, C, D, E, F, G, H)

§

fn name(&self) -> Cow<'static, str>

§

impl<A, B, C, D, E, F, G, H, I> CompilerPass for (A, B, C, D, E, F, G, H, I)

§

fn name(&self) -> Cow<'static, str>

§

impl<A, B, C, D, E, F, G, H, I, J> CompilerPass for (A, B, C, D, E, F, G, H, I, J)

§

fn name(&self) -> Cow<'static, str>

§

impl<A, B, C, D, E, F, G, H, I, J, K> CompilerPass for (A, B, C, D, E, F, G, H, I, J, K)

§

fn name(&self) -> Cow<'static, str>

§

impl<A, B, C, D, E, F, G, H, I, J, K, L> CompilerPass for (A, B, C, D, E, F, G, H, I, J, K, L)

§

fn name(&self) -> Cow<'static, str>

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> CompilerPass for (A, B, C, D, E, F, G, H, I, J, K, L, M)

§

fn name(&self) -> Cow<'static, str>

Implementors§

§

impl<V> CompilerPass for FoldPass<V>
where V: Fold + CompilerPass,

§

impl<V> CompilerPass for VisitMutPass<V>

§

impl<V> CompilerPass for VisitPass<V>
where V: Visit + CompilerPass,

§

impl<V> CompilerPass for Repeat<V>