@@ -364,7 +364,14 @@ export function prop(kind, key, value, computed = false) {
364364 * @returns {ESTree.PropertyDefinition }
365365 */
366366export 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+ } ;
368375}
369376
370377/**
@@ -565,6 +572,7 @@ function for_builder(init, test, update, body) {
565572export function method ( kind , key , params , body , computed = false , is_static = false ) {
566573 return {
567574 type : 'MethodDefinition' ,
575+ decorators : [ ] ,
568576 key,
569577 kind,
570578 value : function_builder ( null , params , block ( body ) ) ,
@@ -610,6 +618,7 @@ function if_builder(test, consequent, alternate) {
610618export function import_all ( as , source ) {
611619 return {
612620 type : 'ImportDeclaration' ,
621+ attributes : [ ] ,
613622 source : literal ( source ) ,
614623 specifiers : [ import_namespace ( as ) ]
615624 } ;
@@ -623,6 +632,7 @@ export function import_all(as, source) {
623632export function imports ( parts , source ) {
624633 return {
625634 type : 'ImportDeclaration' ,
635+ attributes : [ ] ,
626636 source : literal ( source ) ,
627637 specifiers : parts . map ( ( p ) => ( {
628638 type : 'ImportSpecifier' ,
0 commit comments