Struct swc_ecma_codegen::Emitter [−][src]
pub struct Emitter<'a> { pub cfg: Config, pub cm: Lrc<SourceMap>, pub comments: Option<&'a dyn Comments>, pub wr: Box<dyn WriteJs + 'a>, }
Fields
cfg: Config
cm: Lrc<SourceMap>
comments: Option<&'a dyn Comments>
wr: Box<dyn WriteJs + 'a>
Implementations
impl<'a> Emitter<'a>
[src]
impl<'a> Emitter<'a>
[src]pub fn emit_program(&mut self, node: &Program) -> Result
[src]
pub fn emit_module(&mut self, node: &Module) -> Result
[src]
pub fn emit_script(&mut self, node: &Script) -> Result
[src]
pub fn needs_2dots_for_property_access(&self, expr: &ExprOrSuper) -> bool
[src]
1..toString
is a valid property access, emit a dot after the literal
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Emitter<'a>
impl<'a> !RefUnwindSafe for Emitter<'a>
impl<'a> !UnwindSafe for Emitter<'a>
impl<'a> !UnwindSafe for Emitter<'a>