File tree 2 files changed +3
-9
lines changed
crates/oxc_transformer/src
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -284,11 +284,11 @@ impl<'a> Traverse<'a> for Transformer<'a> {
284
284
self . x0_typescript . transform_for_statement ( stmt) ;
285
285
}
286
286
287
- fn enter_module_declaration (
287
+ fn enter_ts_export_assignment (
288
288
& mut self ,
289
- decl : & mut ModuleDeclaration < ' a > ,
289
+ export_assignment : & mut TSExportAssignment < ' a > ,
290
290
_ctx : & mut TraverseCtx < ' a > ,
291
291
) {
292
- self . x0_typescript . transform_module_declaration ( decl ) ;
292
+ self . x0_typescript . transform_ts_export_assignment ( export_assignment ) ;
293
293
}
294
294
}
Original file line number Diff line number Diff line change @@ -189,12 +189,6 @@ impl<'a> TypeScript<'a> {
189
189
}
190
190
}
191
191
192
- pub fn transform_module_declaration ( & mut self , module_decl : & mut ModuleDeclaration < ' a > ) {
193
- if let ModuleDeclaration :: TSExportAssignment ( ts_export_assignment) = & mut * module_decl {
194
- self . transform_ts_export_assignment ( ts_export_assignment) ;
195
- }
196
- }
197
-
198
192
pub fn transform_jsx_element ( & mut self , elem : & mut JSXElement < ' a > ) {
199
193
self . annotations . transform_jsx_element ( elem) ;
200
194
}
You can’t perform that action at this time.
0 commit comments