Skip to content

Commit

Permalink
fix(es/codegen): Emit implements clause with commas (#8477)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Jan 3, 2024
1 parent cddb016 commit d98a282
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_ecma_ast/src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ bitflags! {
| Self::SpaceBetweenSiblings.bits()
| Self::SpaceBetweenBraces.bits();
const MultiLineFunctionBodyStatements = Self::MultiLine.bits();
const ClassHeritageClauses = Self::SingleLine.bits() | Self::SpaceBetweenSiblings.bits();
const ClassHeritageClauses = Self::CommaDelimited.bits() | Self::SingleLine.bits() | Self::SpaceBetweenSiblings.bits();
const ClassMembers = Self::Indented.bits() | Self::MultiLine.bits();
const InterfaceMembers = Self::Indented.bits() | Self::MultiLine.bits();
const EnumMembers = Self::CommaDelimited.bits() | Self::Indented.bits() | Self::MultiLine.bits();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class MyClass implements Interface1, Interface2 {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class MyClass implements Interface1, Interface2 {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
class MyClass implements Interface1,Interface2{}

0 comments on commit d98a282

Please sign in to comment.