We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 880b025 commit 73e56e4Copy full SHA for 73e56e4
crates/swc_ecma_codegen/src/lib.rs
@@ -97,17 +97,25 @@ impl<N: Node> Node for Box<N> {
97
}
98
99
100
-pub struct Emitter<'a, W, S: SourceMapper>
+pub struct Emitter<'a, W, S>
101
where
102
W: WriteJs,
103
- S: SourceMapperExt,
+ S: SourceMapper + SourceMapperExt,
104
{
105
pub cfg: config::Config,
106
pub cm: Lrc<S>,
107
pub comments: Option<&'a dyn Comments>,
108
pub wr: W,
109
110
111
+pub struct NodeEmitter<'a, W, S>
112
+where
113
+ W: WriteJs,
114
115
+{
116
+ emitter: Emitter<'a, W, S>,
117
+}
118
+
119
enum CowStr<'a> {
120
Borrowed(&'a str),
121
Owned(CompactString),
0 commit comments