Emit detached comments for constructor body

This commit is contained in:
Sheetal Nandi
2014-08-19 12:38:56 -07:00
parent ebd00bd1bc
commit b5bd1bf505
6 changed files with 72 additions and 1 deletions

View File

@@ -1616,6 +1616,9 @@ module ts {
write(" {");
scopeEmitStart(node, "constructor");
increaseIndent();
if (ctor) {
emitDetachedComments((<Block>ctor.body).statements);
}
emitCaptureThisForNodeIfNecessary(node);
if (ctor) {
emitDefaultValueAssignments(ctor);