Merge pull request #6906 from Microsoft/port-6858

Ports #6858 into release-1.8
This commit is contained in:
Vladimir Matveev
2016-02-04 12:46:43 -08:00
43 changed files with 194 additions and 41 deletions

View File

@@ -695,10 +695,6 @@ namespace ts {
}
function writeImportDeclaration(node: ImportDeclaration) {
if (!node.importClause && !(node.flags & NodeFlags.Export)) {
// do not write non-exported import declarations that don't have import clauses
return;
}
emitJsDocComments(node);
if (node.flags & NodeFlags.Export) {
write("export ");