swc_common::pass

Trait CompilerPass

source
pub trait CompilerPass {
    // Required method
    fn name(&self) -> Cow<'static, str>;
}
Expand description

A named compiler pass.

Required Methods§

source

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

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

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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)

source§

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

source§

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)

source§

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

source§

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)

source§

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

Implementors§