File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2077,12 +2077,14 @@ impl GenExpr for ImportExpression<'_> {
20772077
20782078impl Gen for TemplateLiteral < ' _ > {
20792079 fn r#gen ( & self , p : & mut Codegen , _ctx : Context ) {
2080+ p. add_source_mapping ( self . span ) ;
20802081 p. print_ascii_byte ( b'`' ) ;
20812082 let mut expressions = self . expressions . iter ( ) ;
20822083
20832084 for quasi in & self . quasis {
20842085 p. add_source_mapping ( quasi. span ) ;
20852086 p. print_str ( quasi. value . raw . as_str ( ) ) ;
2087+ p. add_source_mapping_end ( quasi. span ) ;
20862088
20872089 if let Some ( expr) = expressions. next ( ) {
20882090 p. print_str ( "${" ) ;
@@ -2092,6 +2094,7 @@ impl Gen for TemplateLiteral<'_> {
20922094 }
20932095
20942096 p. print_ascii_byte ( b'`' ) ;
2097+ p. add_source_mapping_end ( self . span ) ;
20952098 }
20962099}
20972100
You can’t perform that action at this time.
0 commit comments