From 3c5ff5310fc553e0256f7e8c3b3763ee4d60fe62 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Tue, 27 Jan 2015 17:16:28 -0800 Subject: [PATCH] CR feedback . --- src/compiler/emitter.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 945ff3e15ae..34978ed7fd6 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -3307,7 +3307,9 @@ module ts { write(" "); emitStart(node.body); write("return "); - // Don't emit comments on this body. We'll have already taken care of it above. + + // Don't emit comments on this body. We'll have already taken care of it above + // when we called emitDetachedComments. emitNode(node.body, /*disableComments:*/ true); emitEnd(node.body); write(";"); @@ -3979,7 +3981,7 @@ module ts { function shouldEmitLeadingAndTrailingComments(node: Node) { switch (node.kind) { - // All of thes entities are emitted in a specialized fashion. As such, we allow + // All of these entities are emitted in a specialized fashion. As such, we allow // the specilized methods for each to handle the comments on the nodes. case SyntaxKind.InterfaceDeclaration: case SyntaxKind.FunctionDeclaration: