Emit the property assignment comments of the object literal

This commit is contained in:
Sheetal Nandi
2014-08-14 05:57:24 -07:00
parent 871507e386
commit d815c14943
5 changed files with 10 additions and 0 deletions

View File

@@ -716,9 +716,11 @@ module ts {
}
function emitPropertyAssignment(node: PropertyDeclaration) {
emitLeadingComments(node);
emit(node.name);
write(": ");
emit(node.initializer);
emitTrailingComments(node);
}
function emitPropertyAccess(node: PropertyAccess) {