Instead of getSymbolAtLocation use resolveExternalModuleName without error reporting
This commit is contained in:
parent
924228b45b
commit
06fead5987
|
@ -28090,7 +28090,7 @@ namespace ts {
|
|||
getAccessor
|
||||
};
|
||||
},
|
||||
getSymbolAtLocation
|
||||
getSymbolOfExternalModuleSpecifier: moduleName => resolveExternalModuleNameWorker(moduleName, moduleName, /*moduleNotFoundError*/ undefined)
|
||||
};
|
||||
|
||||
function isInHeritageClause(node: PropertyAccessEntityNameExpression) {
|
||||
|
|
|
@ -500,7 +500,7 @@ namespace ts {
|
|||
}
|
||||
}
|
||||
else {
|
||||
const symbol = resolver.getSymbolAtLocation(input);
|
||||
const symbol = resolver.getSymbolOfExternalModuleSpecifier(input);
|
||||
if (symbol) {
|
||||
(exportedModulesFromDeclarationEmit || (exportedModulesFromDeclarationEmit = [])).push(symbol);
|
||||
}
|
||||
|
|
|
@ -3387,7 +3387,7 @@ namespace ts {
|
|||
isLiteralConstDeclaration(node: VariableDeclaration | PropertyDeclaration | PropertySignature | ParameterDeclaration): boolean;
|
||||
getJsxFactoryEntity(location?: Node): EntityName | undefined;
|
||||
getAllAccessorDeclarations(declaration: AccessorDeclaration): AllAccessorDeclarations;
|
||||
getSymbolAtLocation(node: Node): Symbol | undefined;
|
||||
getSymbolOfExternalModuleSpecifier(node: StringLiteralLike): Symbol | undefined;
|
||||
}
|
||||
|
||||
export const enum SymbolFlags {
|
||||
|
|
Loading…
Reference in a new issue