Skip to content

Commit

Permalink
fix: unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed May 12, 2023
1 parent ad1dcf0 commit d328a5d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/swc_ecma_transforms_typescript/src/strip_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,16 @@ impl VisitMut for StripType {
prop.accessibility = None;
prop.visit_mut_children_with(self);
}

fn visit_mut_ts_import_equals_decl(&mut self, n: &mut TsImportEqualsDecl) {
n.id.visit_mut_with(self);
}

fn visit_mut_ts_param_prop(&mut self, n: &mut TsParamProp) {
// skip accessibility
n.decorators.visit_mut_with(self);
n.param.visit_mut_with(self);
}
}

fn should_retain_module_item(module_item: &ModuleItem) -> bool {
Expand Down

0 comments on commit d328a5d

Please sign in to comment.