@@ -2613,7 +2613,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
26132613 return isSourceFileLevelDeclarationInSystemJsModule ( targetDeclaration , /*isExported*/ true ) ;
26142614 }
26152615
2616- function isNameOfExportedSourceLevelDeclarationInClauseModule ( node : Node ) : boolean {
2616+ function isNameOfExportedDeclarationInNonES6Module ( node : Node ) : boolean {
26172617 if ( modulekind === ModuleKind . System || node . kind !== SyntaxKind . Identifier || nodeIsSynthesized ( node ) ) {
26182618 return false ;
26192619 }
@@ -2637,7 +2637,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
26372637 write ( `", ` ) ;
26382638 }
26392639 const internalExportChanged = isPlusPlusOrMinusMinus &&
2640- isNameOfExportedSourceLevelDeclarationInClauseModule ( node . operand ) ;
2640+ isNameOfExportedDeclarationInNonES6Module ( node . operand ) ;
26412641
26422642 if ( internalExportChanged ) {
26432643 emitAliasEqual ( < Identifier > node . operand ) ;
@@ -2674,7 +2674,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
26742674
26752675 function emitPostfixUnaryExpression ( node : PostfixUnaryExpression ) {
26762676 const externalExportChanged = isNameOfExportedSourceLevelDeclarationInSystemExternalModule ( node . operand ) ;
2677- const internalExportChanged = isNameOfExportedSourceLevelDeclarationInClauseModule ( node . operand ) ;
2677+ const internalExportChanged = isNameOfExportedDeclarationInNonES6Module ( node . operand ) ;
26782678
26792679 if ( externalExportChanged ) {
26802680 // export function returns the value that was passes as the second argument
@@ -2841,7 +2841,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28412841 }
28422842
28432843 const internalExportChanged = isAssignment &&
2844- isNameOfExportedSourceLevelDeclarationInClauseModule ( node . left ) ;
2844+ isNameOfExportedDeclarationInNonES6Module ( node . left ) ;
28452845
28462846 if ( internalExportChanged ) {
28472847 // export { foo }
@@ -5464,7 +5464,7 @@ const _super = (function (geti, seti) {
54645464 //
54655465
54665466 // NOTE: we reuse the same rewriting logic for cases when targeting ES6 and module kind is System.
5467- // Because of hoisting top level class declaration need to be emitted as class expressions.
5467+ // Because of hoisting top level class declaration need to be emitted as class expressions.
54685468 // Double bind case is only required if node is decorated.
54695469 if ( isDecorated && resolver . getNodeCheckFlags ( node ) & NodeCheckFlags . ClassWithBodyScopedClassBinding ) {
54705470 decoratedClassAlias = unescapeIdentifier ( makeUniqueName ( node . name ? node . name . text : "default" ) ) ;
0 commit comments