Adds the 2021-12 transform for decorators

Implements the 2021-12 transform for the decorators proposal, with
support for the `accessor` keyword.
This commit is contained in:
Chris Hewell Garrett
2021-11-27 16:20:25 -05:00
committed by Nicolò Ribaudo
parent 579ab3fc81
commit 1f63f94718
259 changed files with 7438 additions and 9 deletions

View File

@@ -736,8 +736,10 @@ export interface ClassBody extends BaseNode {
| ClassPrivateMethod
| ClassProperty
| ClassPrivateProperty
| ClassAccessorProperty
| TSDeclareMethod
| TSIndexSignature
| StaticBlock
>;
}

View File

@@ -344,8 +344,10 @@ export function classBody(
| t.ClassPrivateMethod
| t.ClassProperty
| t.ClassPrivateProperty
| t.ClassAccessorProperty
| t.TSDeclareMethod
| t.TSIndexSignature
| t.StaticBlock
>,
): t.ClassBody {
return builder.apply("ClassBody", arguments);

View File

@@ -1262,8 +1262,10 @@ defineType("ClassBody", {
"ClassPrivateMethod",
"ClassProperty",
"ClassPrivateProperty",
"ClassAccessorProperty",
"TSDeclareMethod",
"TSIndexSignature",
"StaticBlock",
),
),
),