@@ -3447,7 +3447,7 @@ protected ExportDeclaration parseExportRest(SourceLocation loc, Set<String> expo
3447
3447
Statement declaration ;
3448
3448
List <ExportSpecifier > specifiers ;
3449
3449
Expression source = null ;
3450
- Expression assertion = null ;
3450
+ Expression attributes = null ;
3451
3451
if (this .shouldParseExportStatement ()) {
3452
3452
declaration = this .parseStatement (true , false );
3453
3453
if (declaration == null ) return null ;
@@ -3463,10 +3463,10 @@ protected ExportDeclaration parseExportRest(SourceLocation loc, Set<String> expo
3463
3463
declaration = null ;
3464
3464
specifiers = this .parseExportSpecifiers (exports );
3465
3465
source = parseExportFrom (specifiers , source , false );
3466
- assertion = parseImportOrExportAssertionAndSemicolon ();
3466
+ attributes = parseImportOrExportAttributesAndSemicolon ();
3467
3467
}
3468
3468
return this .finishNode (
3469
- new ExportNamedDeclaration (loc , declaration , specifiers , (Literal ) source , assertion ));
3469
+ new ExportNamedDeclaration (loc , declaration , specifiers , (Literal ) source , attributes ));
3470
3470
}
3471
3471
3472
3472
/** Parses the 'from' clause of an export, not including the assertion or semicolon. */
@@ -3494,8 +3494,8 @@ protected Expression parseExportFrom(
3494
3494
protected ExportDeclaration parseExportAll (
3495
3495
SourceLocation loc , Position starLoc , Set <String > exports ) {
3496
3496
Expression source = parseExportFrom (null , null , true );
3497
- Expression assertion = parseImportOrExportAssertionAndSemicolon ();
3498
- return this .finishNode (new ExportAllDeclaration (loc , (Literal ) source , assertion ));
3497
+ Expression attributes = parseImportOrExportAttributesAndSemicolon ();
3498
+ return this .finishNode (new ExportAllDeclaration (loc , (Literal ) source , attributes ));
3499
3499
}
3500
3500
3501
3501
private void checkExport (Set <String > exports , String name , Position pos ) {
@@ -3560,7 +3560,7 @@ protected Statement parseImport(Position startLoc) {
3560
3560
return parseImportRest (loc );
3561
3561
}
3562
3562
3563
- protected Expression parseImportOrExportAssertionAndSemicolon () {
3563
+ protected Expression parseImportOrExportAttributesAndSemicolon () {
3564
3564
Expression result = null ;
3565
3565
if (!this .eagerlyTrySemicolon ()) {
3566
3566
if (!this .eatContextual ("assert" )) {
@@ -3585,9 +3585,9 @@ protected ImportDeclaration parseImportRest(SourceLocation loc) {
3585
3585
if (this .type != TokenType .string ) this .unexpected ();
3586
3586
source = (Literal ) this .parseExprAtom (null );
3587
3587
}
3588
- Expression assertion = this .parseImportOrExportAssertionAndSemicolon ();
3588
+ Expression attributes = this .parseImportOrExportAttributesAndSemicolon ();
3589
3589
if (specifiers == null ) return null ;
3590
- return this .finishNode (new ImportDeclaration (loc , specifiers , source , assertion ));
3590
+ return this .finishNode (new ImportDeclaration (loc , specifiers , source , attributes ));
3591
3591
}
3592
3592
3593
3593
// Parses a comma-separated list of module imports.
0 commit comments