mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
Fixes searches for export * as 'identifier' (#39533)
* Fixes searches for export * as 'identifier' Fixes #39006 * Fix the context span to export declaration (was incorrectly set to sourceFile in prev commit)
This commit is contained in:
@@ -132,6 +132,7 @@ namespace ts.FindAllReferences {
|
||||
return node.parent.parent;
|
||||
|
||||
case SyntaxKind.ImportClause:
|
||||
case SyntaxKind.NamespaceExport:
|
||||
return node.parent;
|
||||
|
||||
case SyntaxKind.BinaryExpression:
|
||||
|
||||
@@ -481,6 +481,9 @@ namespace ts.FindAllReferences {
|
||||
return exportInfo(symbol, getExportKindForDeclaration(exportNode));
|
||||
}
|
||||
}
|
||||
else if (isNamespaceExport(parent)) {
|
||||
return exportInfo(symbol, ExportKind.Named);
|
||||
}
|
||||
// If we are in `export = a;` or `export default a;`, `parent` is the export assignment.
|
||||
else if (isExportAssignment(parent)) {
|
||||
return getExportAssignmentExport(parent);
|
||||
|
||||
Reference in New Issue
Block a user