swc_xml_codegen/writer/
mod.rs

1use std::fmt::Result;
2
3use auto_impl::auto_impl;
4use swc_common::Span;
5
6pub mod basic;
7
8#[auto_impl(&mut, Box)]
9pub trait XmlWriter {
10    fn write_space(&mut self) -> Result;
11
12    fn write_newline(&mut self) -> Result;
13
14    fn write_raw(&mut self, span: Option<Span>, text: &str) -> Result;
15
16    fn write_multiline_raw(&mut self, span: Span, s: &str) -> Result;
17
18    fn increase_indent(&mut self);
19
20    fn decrease_indent(&mut self);
21}