Skip to content

Commit

Permalink
Use maybe_grow_default
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored and magic-akari committed Oct 2, 2024
1 parent ca77861 commit c14e2ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/swc_ecma_transforms_typescript/src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ impl Visit for Transform {
.insert(node.id.to_id(), self.namespace_id.clone());
}
}

fn visit_expr(&mut self, node: &Expr) {
maybe_grow_default(|| node.visit_children_with(self));
}
}

impl VisitMut for Transform {
Expand Down

0 comments on commit c14e2ed

Please sign in to comment.