Instead of writing text from source file use text property to write text of synthesized node

Fixes #4364
This commit is contained in:
Sheetal Nandi committed 2015-08-21 13:10:30 -07:00
1 parent 2ed9bdbfb8
commit 060dbd24f4
5 files changed
+148 -1

No files matched your search

+7 -1
View File
@@ -1519,7 +1519,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
return;
}
}
writeTextOfNode(currentSourceFile, node);
if (nodeIsSynthesized(node)) {
write(node.text);
}
else {
writeTextOfNode(currentSourceFile, node);
}
}
function isNameOfNestedRedeclaration(node: Identifier) {