@@ -1400,10 +1400,10 @@ namespace ts {
1400
1400
return resolveExternalModuleSymbol(node.parent.symbol, dontResolveAlias);
1401
1401
}
1402
1402
1403
- function getTargetOfExportSpecifier(node: ExportSpecifier, dontResolveAlias?: boolean): Symbol {
1404
- return (<ExportDeclaration> node.parent.parent) .moduleSpecifier ?
1405
- getExternalModuleMember(<ExportDeclaration> node.parent.parent, node, dontResolveAlias) :
1406
- resolveEntityName(node.propertyName || node.name, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace , /*ignoreErrors*/ false, dontResolveAlias);
1403
+ function getTargetOfExportSpecifier(node: ExportSpecifier, meaning: SymbolFlags, dontResolveAlias?: boolean) {
1404
+ return node.parent.parent.moduleSpecifier ?
1405
+ getExternalModuleMember(node.parent.parent, node, dontResolveAlias) :
1406
+ resolveEntityName(node.propertyName || node.name, meaning , /*ignoreErrors*/ false, dontResolveAlias);
1407
1407
}
1408
1408
1409
1409
function getTargetOfExportAssignment(node: ExportAssignment, dontResolveAlias: boolean): Symbol {
@@ -1421,7 +1421,7 @@ namespace ts {
1421
1421
case SyntaxKind.ImportSpecifier:
1422
1422
return getTargetOfImportSpecifier(<ImportSpecifier>node, dontRecursivelyResolve);
1423
1423
case SyntaxKind.ExportSpecifier:
1424
- return getTargetOfExportSpecifier(<ExportSpecifier>node, dontRecursivelyResolve);
1424
+ return getTargetOfExportSpecifier(<ExportSpecifier>node, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace, dontRecursivelyResolve);
1425
1425
case SyntaxKind.ExportAssignment:
1426
1426
return getTargetOfExportAssignment(<ExportAssignment>node, dontRecursivelyResolve);
1427
1427
case SyntaxKind.NamespaceExportDeclaration:
@@ -3721,10 +3721,7 @@ namespace ts {
3721
3721
exportSymbol = resolveName(node.parent, node.text, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace | SymbolFlags.Alias, Diagnostics.Cannot_find_name_0, node);
3722
3722
}
3723
3723
else if (node.parent.kind === SyntaxKind.ExportSpecifier) {
3724
- const exportSpecifier = <ExportSpecifier>node.parent;
3725
- exportSymbol = (<ExportDeclaration>exportSpecifier.parent.parent).moduleSpecifier ?
3726
- getExternalModuleMember(<ExportDeclaration>exportSpecifier.parent.parent, exportSpecifier) :
3727
- resolveEntityName(exportSpecifier.propertyName || exportSpecifier.name, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace | SymbolFlags.Alias);
3724
+ exportSymbol = getTargetOfExportSpecifier(<ExportSpecifier>node.parent, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace | SymbolFlags.Alias);
3728
3725
}
3729
3726
const result: Node[] = [];
3730
3727
if (exportSymbol) {
0 commit comments