Struct swc_ecma_codegen::text_writer::JsWriter [−][src]
pub struct JsWriter<'a, W: Write> { /* fields omitted */ }
Expand description
Ported from createTextWriter
of the typescript compiler.
https://github.com/Microsoft/TypeScript/blob/45eaf42006/src/compiler/utilities.ts#L2548
Implementations
Trait Implementations
impl<'a, W: Write> WriteJs for JsWriter<'a, W>
[src]
impl<'a, W: Write> WriteJs for JsWriter<'a, W>
[src]fn increase_indent(&mut self) -> Result
[src]
fn decrease_indent(&mut self) -> Result
[src]
fn write_semi(&mut self) -> Result
[src]
fn write_semi(&mut self) -> Result
[src]This may write semicolon.
fn write_space(&mut self) -> Result
[src]
fn write_keyword(&mut self, span: Option<Span>, s: &'static str) -> Result
[src]
fn write_operator(&mut self, s: &str) -> Result
[src]
fn write_param(&mut self, s: &str) -> Result
[src]
fn write_property(&mut self, s: &str) -> Result
[src]
fn write_line(&mut self) -> Result
[src]
fn write_lit(&mut self, span: Span, s: &str) -> Result
[src]
fn write_comment(&mut self, span: Span, s: &str) -> Result
[src]
fn write_str_lit(&mut self, span: Span, s: &str) -> Result
[src]
fn write_str(&mut self, s: &str) -> Result
[src]
fn write_symbol(&mut self, span: Span, s: &str) -> Result
[src]
fn write_punct(&mut self, s: &'static str) -> Result
[src]
Auto Trait Implementations
impl<'a, W> !RefUnwindSafe for JsWriter<'a, W>
impl<'a, W> !Send for JsWriter<'a, W>
impl<'a, W> !Sync for JsWriter<'a, W>
impl<'a, W> Unpin for JsWriter<'a, W> where
W: Unpin,
W: Unpin,
impl<'a, W> !UnwindSafe for JsWriter<'a, W>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Node for T where
T: Any + ?Sized,
T: Any + ?Sized,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,