@@ -3447,7 +3447,7 @@ protected ExportDeclaration parseExportRest(SourceLocation loc, Set<String> expo
34473447 Statement declaration ;
34483448 List <ExportSpecifier > specifiers ;
34493449 Expression source = null ;
3450- Expression assertion = null ;
3450+ Expression attributes = null ;
34513451 if (this .shouldParseExportStatement ()) {
34523452 declaration = this .parseStatement (true , false );
34533453 if (declaration == null ) return null ;
@@ -3463,10 +3463,10 @@ protected ExportDeclaration parseExportRest(SourceLocation loc, Set<String> expo
34633463 declaration = null ;
34643464 specifiers = this .parseExportSpecifiers (exports );
34653465 source = parseExportFrom (specifiers , source , false );
3466- assertion = parseImportOrExportAssertionAndSemicolon ();
3466+ attributes = parseImportOrExportAttributesAndSemicolon ();
34673467 }
34683468 return this .finishNode (
3469- new ExportNamedDeclaration (loc , declaration , specifiers , (Literal ) source , assertion ));
3469+ new ExportNamedDeclaration (loc , declaration , specifiers , (Literal ) source , attributes ));
34703470 }
34713471
34723472 /** Parses the 'from' clause of an export, not including the assertion or semicolon. */
@@ -3494,8 +3494,8 @@ protected Expression parseExportFrom(
34943494 protected ExportDeclaration parseExportAll (
34953495 SourceLocation loc , Position starLoc , Set <String > exports ) {
34963496 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 ));
34993499 }
35003500
35013501 private void checkExport (Set <String > exports , String name , Position pos ) {
@@ -3560,7 +3560,7 @@ protected Statement parseImport(Position startLoc) {
35603560 return parseImportRest (loc );
35613561 }
35623562
3563- protected Expression parseImportOrExportAssertionAndSemicolon () {
3563+ protected Expression parseImportOrExportAttributesAndSemicolon () {
35643564 Expression result = null ;
35653565 if (!this .eagerlyTrySemicolon ()) {
35663566 if (!this .eatContextual ("assert" )) {
@@ -3585,9 +3585,9 @@ protected ImportDeclaration parseImportRest(SourceLocation loc) {
35853585 if (this .type != TokenType .string ) this .unexpected ();
35863586 source = (Literal ) this .parseExprAtom (null );
35873587 }
3588- Expression assertion = this .parseImportOrExportAssertionAndSemicolon ();
3588+ Expression attributes = this .parseImportOrExportAttributesAndSemicolon ();
35893589 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 ));
35913591 }
35923592
35933593 // Parses a comma-separated list of module imports.
0 commit comments