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:
committed by
Nicolò Ribaudo
parent
579ab3fc81
commit
1f63f94718
@@ -736,8 +736,10 @@ export interface ClassBody extends BaseNode {
|
||||
| ClassPrivateMethod
|
||||
| ClassProperty
|
||||
| ClassPrivateProperty
|
||||
| ClassAccessorProperty
|
||||
| TSDeclareMethod
|
||||
| TSIndexSignature
|
||||
| StaticBlock
|
||||
>;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -1262,8 +1262,10 @@ defineType("ClassBody", {
|
||||
"ClassPrivateMethod",
|
||||
"ClassProperty",
|
||||
"ClassPrivateProperty",
|
||||
"ClassAccessorProperty",
|
||||
"TSDeclareMethod",
|
||||
"TSIndexSignature",
|
||||
"StaticBlock",
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user