@@ -1201,16 +1201,16 @@ private Node convertExportAssignment(JsonObject node, SourceLocation loc) throws
1201
1201
1202
1202
private Node convertExportDeclaration (JsonObject node , SourceLocation loc ) throws ParseError {
1203
1203
Literal source = tryConvertChild (node , "moduleSpecifier" , Literal .class );
1204
- Expression assertion = convertChild (node , "assertClause " );
1204
+ Expression attributes = convertChild (node , "attributes " );
1205
1205
if (hasChild (node , "exportClause" )) {
1206
1206
boolean hasTypeKeyword = node .get ("isTypeOnly" ).getAsBoolean ();
1207
1207
List <ExportSpecifier > specifiers =
1208
1208
hasKind (node .get ("exportClause" ), "NamespaceExport" )
1209
1209
? Collections .singletonList (convertChild (node , "exportClause" ))
1210
1210
: convertChildren (node .get ("exportClause" ).getAsJsonObject (), "elements" );
1211
- return new ExportNamedDeclaration (loc , null , specifiers , source , assertion , hasTypeKeyword );
1211
+ return new ExportNamedDeclaration (loc , null , specifiers , source , attributes , hasTypeKeyword );
1212
1212
} else {
1213
- return new ExportAllDeclaration (loc , source , assertion );
1213
+ return new ExportAllDeclaration (loc , source , attributes );
1214
1214
}
1215
1215
}
1216
1216
@@ -1393,7 +1393,7 @@ private Node convertImportClause(JsonObject node, SourceLocation loc) throws Par
1393
1393
1394
1394
private Node convertImportDeclaration (JsonObject node , SourceLocation loc ) throws ParseError {
1395
1395
Literal src = tryConvertChild (node , "moduleSpecifier" , Literal .class );
1396
- Expression assertion = convertChild (node , "assertClause " );
1396
+ Expression attributes = convertChild (node , "attributes " );
1397
1397
List <ImportSpecifier > specifiers = new ArrayList <>();
1398
1398
boolean hasTypeKeyword = false ;
1399
1399
if (hasChild (node , "importClause" )) {
@@ -1412,7 +1412,7 @@ private Node convertImportDeclaration(JsonObject node, SourceLocation loc) throw
1412
1412
hasTypeKeyword = importClause .get ("isTypeOnly" ).getAsBoolean ();
1413
1413
}
1414
1414
ImportDeclaration importDecl =
1415
- new ImportDeclaration (loc , specifiers , src , assertion , hasTypeKeyword );
1415
+ new ImportDeclaration (loc , specifiers , src , attributes , hasTypeKeyword );
1416
1416
attachSymbolInformation (importDecl , node );
1417
1417
return importDecl ;
1418
1418
}
0 commit comments