-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(es/codegen): Print the missing
abstract
in class expression (#9372
) - Closes #9370
- Loading branch information
1 parent
21ed716
commit c2e3021
Showing
4 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
swc_ecma_codegen: patch | ||
--- | ||
|
||
fix(es/codegen): Print the missing `abstract` in class expression |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
crates/swc_ecma_codegen/tests/fixture/typescript/class_abstract/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default abstract class Predictor { | ||
abstract _type: string; | ||
} | ||
|
||
export abstract class Foo { | ||
abstract _type: string; | ||
} |
6 changes: 6 additions & 0 deletions
6
crates/swc_ecma_codegen/tests/fixture/typescript/class_abstract/output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default abstract class Predictor { | ||
abstract _type: string; | ||
} | ||
export abstract class Foo { | ||
abstract _type: string; | ||
} |