@@ -364,7 +364,14 @@ export function prop(kind, key, value, computed = false) {
364
364
* @returns {ESTree.PropertyDefinition }
365
365
*/
366
366
export function prop_def ( key , value , computed = false , is_static = false ) {
367
- return { type : 'PropertyDefinition' , key, value, computed, static : is_static } ;
367
+ return {
368
+ type : 'PropertyDefinition' ,
369
+ decorators : [ ] ,
370
+ key,
371
+ value,
372
+ computed,
373
+ static : is_static
374
+ } ;
368
375
}
369
376
370
377
/**
@@ -565,6 +572,7 @@ function for_builder(init, test, update, body) {
565
572
export function method ( kind , key , params , body , computed = false , is_static = false ) {
566
573
return {
567
574
type : 'MethodDefinition' ,
575
+ decorators : [ ] ,
568
576
key,
569
577
kind,
570
578
value : function_builder ( null , params , block ( body ) ) ,
@@ -610,6 +618,7 @@ function if_builder(test, consequent, alternate) {
610
618
export function import_all ( as , source ) {
611
619
return {
612
620
type : 'ImportDeclaration' ,
621
+ attributes : [ ] ,
613
622
source : literal ( source ) ,
614
623
specifiers : [ import_namespace ( as ) ]
615
624
} ;
@@ -623,6 +632,7 @@ export function import_all(as, source) {
623
632
export function imports ( parts , source ) {
624
633
return {
625
634
type : 'ImportDeclaration' ,
635
+ attributes : [ ] ,
626
636
source : literal ( source ) ,
627
637
specifiers : parts . map ( ( p ) => ( {
628
638
type : 'ImportSpecifier' ,
0 commit comments