@@ -1837,8 +1837,9 @@ namespace ts {
1837
1837
nameArg: __String | Identifier | undefined,
1838
1838
isUse: boolean,
1839
1839
excludeGlobals = false,
1840
- getSpellingSuggstions = true): Symbol | undefined {
1841
- return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions, getSymbol);
1840
+ getSpellingSuggestions = true,
1841
+ reportErrors = true): Symbol | undefined {
1842
+ return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions, getSymbol, reportErrors);
1842
1843
}
1843
1844
1844
1845
function resolveNameHelper(
@@ -2269,7 +2270,7 @@ namespace ts {
2269
2270
}
2270
2271
2271
2272
// Perform extra checks only if error reporting was requested
2272
- if (nameNotFoundMessage) {
2273
+ if (reportErrors && nameNotFoundMessage) {
2273
2274
addLazyDiagnostic(() => {
2274
2275
// Only check for block-scoped variable if we have an error location and are looking for the
2275
2276
// name with variable meaning
@@ -43507,7 +43508,10 @@ namespace ts {
43507
43508
SymbolFlags.Value | SymbolFlags.ExportValue | SymbolFlags.Alias,
43508
43509
/*nodeNotFoundMessage*/ undefined,
43509
43510
/*nameArg*/ undefined,
43510
- /*isUse*/ true);
43511
+ /*isUse*/ true,
43512
+ /*excludeGlobals*/ undefined,
43513
+ /*getSpellingSuggestions*/ undefined,
43514
+ /*reportErrors*/ false);
43511
43515
}
43512
43516
43513
43517
function getReferencedValueDeclaration(referenceIn: Identifier): Declaration | undefined {
0 commit comments