Struct swc::PassBuilder [−][src]
pub struct PassBuilder<'a, 'b, P: Fold> { /* fields omitted */ }
Expand description
Builder is used to create a high performance Compiler
.
Implementations
pub fn new(
cm: &'a Arc<SourceMap>,
handler: &'b Handler,
loose: bool,
top_level_mark: Mark,
pass: P
) -> Self
Note: hygiene is enabled by default.
If you pass None to this method, the hygiene
pass will be disabled.
pub fn const_modules(
self,
globals: HashMap<JsWord, HashMap<JsWord, String>>
) -> PassBuilder<'a, 'b, impl Fold>
Auto Trait Implementations
impl<'a, 'b, P> !RefUnwindSafe for PassBuilder<'a, 'b, P>
impl<'a, 'b, P> Send for PassBuilder<'a, 'b, P> where
P: Send,
impl<'a, 'b, P> Sync for PassBuilder<'a, 'b, P> where
P: Sync,
impl<'a, 'b, P> Unpin for PassBuilder<'a, 'b, P> where
P: Unpin,
impl<'a, 'b, P> !UnwindSafe for PassBuilder<'a, 'b, P>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more