Skip to content

Commit e1629e5

Browse files
authored
Pass ignoreErrors=true to more resolveEntityName callers (#61144)
1 parent 34ea32f commit e1629e5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/compiler/checker.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -49148,11 +49148,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4914849148
}
4914949149
else if (isEntityName(name) && isTypeReferenceIdentifier(name)) {
4915049150
const meaning = name.parent.kind === SyntaxKind.TypeReference ? SymbolFlags.Type : SymbolFlags.Namespace;
49151-
const symbol = resolveEntityName(name, meaning, /*ignoreErrors*/ false, /*dontResolveAlias*/ true);
49151+
const symbol = resolveEntityName(name, meaning, /*ignoreErrors*/ true, /*dontResolveAlias*/ true);
4915249152
return symbol && symbol !== unknownSymbol ? symbol : getUnresolvedSymbolForEntityName(name);
4915349153
}
4915449154
if (name.parent.kind === SyntaxKind.TypePredicate) {
49155-
return resolveEntityName(name as Identifier, /*meaning*/ SymbolFlags.FunctionScopedVariable);
49155+
return resolveEntityName(name as Identifier, /*meaning*/ SymbolFlags.FunctionScopedVariable, /*ignoreErrors*/ true);
4915649156
}
4915749157
return undefined;
4915849158
}
@@ -49383,7 +49383,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4938349383

4938449384
function getShorthandAssignmentValueSymbol(location: Node | undefined): Symbol | undefined {
4938549385
if (location && location.kind === SyntaxKind.ShorthandPropertyAssignment) {
49386-
return resolveEntityName((location as ShorthandPropertyAssignment).name, SymbolFlags.Value | SymbolFlags.Alias);
49386+
return resolveEntityName((location as ShorthandPropertyAssignment).name, SymbolFlags.Value | SymbolFlags.Alias, /*ignoreErrors*/ true);
4938749387
}
4938849388
return undefined;
4938949389
}
@@ -49395,10 +49395,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4939549395
return node.parent.parent.moduleSpecifier ?
4939649396
getExternalModuleMember(node.parent.parent, node) :
4939749397
name.kind === SyntaxKind.StringLiteral ? undefined : // Skip for invalid syntax like this: export { "x" }
49398-
resolveEntityName(name, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace | SymbolFlags.Alias);
49398+
resolveEntityName(name, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace | SymbolFlags.Alias, /*ignoreErrors*/ true);
4939949399
}
4940049400
else {
49401-
return resolveEntityName(node, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace | SymbolFlags.Alias);
49401+
return resolveEntityName(node, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace | SymbolFlags.Alias, /*ignoreErrors*/ true);
4940249402
}
4940349403
}
4940449404

0 commit comments

Comments
 (0)