Skip to content

Commit

Permalink
More fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 26, 2023
1 parent 21b7624 commit 2354518
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/swc_ecma_usage_analyzer/src/analyzer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,15 @@ fn for_each_id_ref_in_expr(e: &Expr, op: &mut impl FnMut(&Ident)) {
for_each_id_ref_in_expr(&c.cons, op);
for_each_id_ref_in_expr(&c.alt, op);
}
Expr::Bin(
b @ BinExpr {
op: op!("||") | op!("??") | op!("&&"),
..
},
) => {
for_each_id_ref_in_expr(&b.left, op);
for_each_id_ref_in_expr(&b.right, op);
}
Expr::Seq(s) => {
for_each_id_ref_in_expr(s.exprs.last().unwrap(), op);
}
Expand Down

0 comments on commit 2354518

Please sign in to comment.