Write synthesized node's text property instead of getting text from source file

This fixes issue of not being able to emit qualified expression correctly
This commit is contained in:
Sheetal Nandi
2015-08-24 12:06:21 -07:00
parent 6c457f6c1d
commit 979e2bf7c4
9 changed files with 373 additions and 0 deletions

View File

@@ -1552,6 +1552,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
else if (isNameOfNestedRedeclaration(node)) {
write(getGeneratedNameForNode(node));
}
else if (nodeIsSynthesized(node)) {
write(node.text);
}
else {
writeTextOfNode(currentSourceFile, node);
}