Struct swc_ecma_codegen::Emitter
source · [−]pub struct Emitter<'a, W, S: SourceMapper>where
W: WriteJs,
S: SourceMapperExt,{
pub cfg: Config,
pub cm: Lrc<S>,
pub comments: Option<&'a dyn Comments>,
pub wr: W,
}
Fields
cfg: Config
cm: Lrc<S>
comments: Option<&'a dyn Comments>
wr: W
Implementations
sourceimpl<'a, W, S: SourceMapper> Emitter<'a, W, S>where
W: WriteJs,
S: SourceMapperExt,
impl<'a, W, S: SourceMapper> Emitter<'a, W, S>where
W: WriteJs,
S: SourceMapperExt,
pub fn emit_program(&mut self, node: &Program) -> Result
pub fn emit_module(&mut self, node: &Module) -> Result
pub fn emit_script(&mut self, node: &Script) -> Result
pub fn emit_module_item(&mut self, node: &ModuleItem) -> Result
sourceimpl<'a, W, S: SourceMapper> Emitter<'a, W, S>where
W: WriteJs,
S: SourceMapperExt,
impl<'a, W, S: SourceMapper> Emitter<'a, W, S>where
W: WriteJs,
S: SourceMapperExt,
Statements
pub fn emit_module_export_name(&mut self, node: &ModuleExportName) -> Result
Auto Trait Implementations
impl<'a, W, S> !RefUnwindSafe for Emitter<'a, W, S>
impl<'a, W, S> !Send for Emitter<'a, W, S>
impl<'a, W, S> !Sync for Emitter<'a, W, S>
impl<'a, W, S> Unpin for Emitter<'a, W, S>where
W: Unpin,
impl<'a, W, S> !UnwindSafe for Emitter<'a, W, S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more