@@ -1013,11 +1013,11 @@ namespace ts {
1013
1013
return [ clean , namespaceDecl ] ;
1014
1014
}
1015
1015
1016
- const modifierFlags = ( getModifierFlags ( clean ) & ~ ModifierFlags . ExportDefault ) | ModifierFlags . Ambient ;
1016
+ const modifierFlags = createModifiersFromModifierFlags ( ( getModifierFlags ( clean ) & ~ ModifierFlags . ExportDefault ) | ModifierFlags . Ambient ) ;
1017
1017
const cleanDeclaration = updateFunctionDeclaration (
1018
1018
clean ,
1019
1019
/*decorators*/ undefined ,
1020
- createModifiersFromModifierFlags ( modifierFlags ) ,
1020
+ modifierFlags ,
1021
1021
/*asteriskToken*/ undefined ,
1022
1022
clean . name ,
1023
1023
clean . typeParameters ,
@@ -1029,16 +1029,16 @@ namespace ts {
1029
1029
const namespaceDeclaration = updateModuleDeclaration (
1030
1030
namespaceDecl ,
1031
1031
/*decorators*/ undefined ,
1032
- createModifiersFromModifierFlags ( modifierFlags ) ,
1033
- input . name ! ,
1034
- createModuleBlock ( declarations )
1032
+ modifierFlags ,
1033
+ namespaceDecl . name ,
1034
+ namespaceDecl . body
1035
1035
) ;
1036
1036
1037
1037
const exportDefaultDeclaration = createExportAssignment (
1038
1038
/*decorators*/ undefined ,
1039
- /*modifiers*/ undefined ,
1040
- /*isExportEquals*/ false ,
1041
- clean . name !
1039
+ /*modifiers*/ undefined ,
1040
+ /*isExportEquals*/ false ,
1041
+ namespaceDecl . name
1042
1042
) ;
1043
1043
1044
1044
resultHasExternalModuleIndicator = true ;
0 commit comments