New Import declaration syntax makes the source file external module

This commit is contained in:
Sheetal Nandi
2015-01-30 13:36:17 -08:00
parent 62ed6183d9
commit a9575a509e

View File

@@ -4874,6 +4874,7 @@ module ts {
node.flags & NodeFlags.Export
|| node.kind === SyntaxKind.ImportEqualsDeclaration && (<ImportEqualsDeclaration>node).moduleReference.kind === SyntaxKind.ExternalModuleReference
|| node.kind === SyntaxKind.ExportAssignment
|| node.kind === SyntaxKind.ImportDeclaration
? node
: undefined);
}