Support for ES6 export declarations (except export default and export *)

This commit is contained in:
Anders Hejlsberg
2015-02-12 18:05:02 -08:00
parent 3b39e9f4a1
commit 79be0a7d26
7 changed files with 293 additions and 133 deletions

View File

@@ -351,8 +351,8 @@ module ts {
function processImportedModules(file: SourceFile, basePath: string) {
forEach(file.statements, node => {
if (node.kind === SyntaxKind.ImportDeclaration || node.kind === SyntaxKind.ImportEqualsDeclaration) {
var moduleNameExpr = getImportedModuleName(node);
if (node.kind === SyntaxKind.ImportDeclaration || node.kind === SyntaxKind.ImportEqualsDeclaration || node.kind === SyntaxKind.ExportDeclaration) {
var moduleNameExpr = getExternalModuleName(node);
if (moduleNameExpr && moduleNameExpr.kind === SyntaxKind.StringLiteral) {
var moduleNameText = (<LiteralExpression>moduleNameExpr).text;
if (moduleNameText) {