From b193426c7b12ce73331aea2019b718f22f06dc87 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Fri, 16 Sep 2016 15:17:52 -0700 Subject: [PATCH] Address PR: Update comment --- src/compiler/transformers/ts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/transformers/ts.ts b/src/compiler/transformers/ts.ts index 1912370998b..4de60322e93 100644 --- a/src/compiler/transformers/ts.ts +++ b/src/compiler/transformers/ts.ts @@ -2891,7 +2891,7 @@ namespace ts { // })(world = hi.world || (hi.world = {})); // })(hi = hello.hi || (hello.hi = {})); // })(hello || (hello = {})); - // so if the block is a transformed module declaration, turn off the comment emit + // We only want to emit comment on the namespace which contains block body itself, not the containing namespaces. if (body.kind !== SyntaxKind.ModuleBlock) { setNodeEmitFlags(block, block.emitFlags | NodeEmitFlags.NoComments); }