Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Nov 29, 2023
1 parent 863e272 commit a918807
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/swc_estree_compat/src/babelify/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ impl Babelify for ClassMember {
ClassMember::PrivateMethod(m) => ClassBodyEl::PrivateMethod(m.babelify(ctx)),
ClassMember::ClassProp(p) => ClassBodyEl::Prop(p.babelify(ctx)),
ClassMember::PrivateProp(p) => ClassBodyEl::PrivateProp(p.babelify(ctx)),
ClassMember::TsIndexSignature(s) => ClassBodyEl::TSIndex(s.babelify(ctx)),
ClassMember::Empty(_) => panic!(
ClassMember::TsIndexSignature(s) => ClassBodyEl::TSIndex(s.babelify(ctx))
"illegal conversion: Cannot convert {:?} to ClassBodyEl",
&self
),
ClassMember::StaticBlock(s) => ClassBodyEl::StaticBlock(s.babelify(ctx)),
ClassMember::AutoAccessor(..) => todo!("auto accessor"),
ClassMember::ContentTagMember(..) => todo!("content tag member"),
ClassMember::ContentTagMember(ct) => ct.babelify(ctx),
}
}
}
Expand Down

0 comments on commit a918807

Please sign in to comment.