[−][src]Trait swc_ecma_codegen::text_writer::WriteJs
Ecmascript writer.
Ported from EmitWriteJs
.
Required methods
fn increase_indent(&mut self) -> Result
fn decrease_indent(&mut self) -> Result
fn write_semi(&mut self) -> Result
This may write semicolon.
fn write_space(&mut self) -> Result
fn write_keyword(&mut self, span: Option<Span>, s: &'static str) -> Result
fn write_operator(&mut self, s: &str) -> Result
fn write_param(&mut self, s: &str) -> Result
fn write_property(&mut self, s: &str) -> Result
fn write_line(&mut self) -> Result
fn write_lit(&mut self, span: Span, s: &str) -> Result
fn write_comment(&mut self, span: Span, s: &str) -> Result
fn write_str_lit(&mut self, span: Span, s: &str) -> Result
fn write_str(&mut self, s: &str) -> Result
fn write_symbol(&mut self, span: Span, s: &str) -> Result
fn write_punct(&mut self, s: &'static str) -> Result
Implementations on Foreign Types
impl<W: ?Sized> WriteJs for Box<W> where
W: WriteJs,
[src]
W: WriteJs,