Skip to content

Commit 06fead5

Browse files
committed
Instead of getSymbolAtLocation use resolveExternalModuleName without error reporting
1 parent 924228b commit 06fead5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28090,7 +28090,7 @@ namespace ts {
2809028090
getAccessor
2809128091
};
2809228092
},
28093-
getSymbolAtLocation
28093+
getSymbolOfExternalModuleSpecifier: moduleName => resolveExternalModuleNameWorker(moduleName, moduleName, /*moduleNotFoundError*/ undefined)
2809428094
};
2809528095

2809628096
function isInHeritageClause(node: PropertyAccessEntityNameExpression) {

src/compiler/transformers/declarations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ namespace ts {
500500
}
501501
}
502502
else {
503-
const symbol = resolver.getSymbolAtLocation(input);
503+
const symbol = resolver.getSymbolOfExternalModuleSpecifier(input);
504504
if (symbol) {
505505
(exportedModulesFromDeclarationEmit || (exportedModulesFromDeclarationEmit = [])).push(symbol);
506506
}

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3387,7 +3387,7 @@ namespace ts {
33873387
isLiteralConstDeclaration(node: VariableDeclaration | PropertyDeclaration | PropertySignature | ParameterDeclaration): boolean;
33883388
getJsxFactoryEntity(location?: Node): EntityName | undefined;
33893389
getAllAccessorDeclarations(declaration: AccessorDeclaration): AllAccessorDeclarations;
3390-
getSymbolAtLocation(node: Node): Symbol | undefined;
3390+
getSymbolOfExternalModuleSpecifier(node: StringLiteralLike): Symbol | undefined;
33913391
}
33923392

33933393
export const enum SymbolFlags {

0 commit comments

Comments
 (0)