Skip to content

Commit b193426

Browse files
author
Kanchalai Tanglertsampan
committed
Address PR: Update comment
1 parent a49ce91 commit b193426

File tree

1 file changed

+1
-1
lines changed
  • src/compiler/transformers

1 file changed

+1
-1
lines changed

src/compiler/transformers/ts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2891,7 +2891,7 @@ namespace ts {
28912891
// })(world = hi.world || (hi.world = {}));
28922892
// })(hi = hello.hi || (hello.hi = {}));
28932893
// })(hello || (hello = {}));
2894-
// so if the block is a transformed module declaration, turn off the comment emit
2894+
// We only want to emit comment on the namespace which contains block body itself, not the containing namespaces.
28952895
if (body.kind !== SyntaxKind.ModuleBlock) {
28962896
setNodeEmitFlags(block, block.emitFlags | NodeEmitFlags.NoComments);
28972897
}

0 commit comments

Comments
 (0)