Skip to content

Commit a075ba9

Browse files
author
Andy
authored
getSuggestionForNonexistentSymbol: Add comment (microsoft#18885)
1 parent d11172c commit a075ba9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14866,6 +14866,7 @@ namespace ts {
1486614866

1486714867
function getSuggestionForNonexistentSymbol(location: Node, name: __String, meaning: SymbolFlags): string {
1486814868
const result = resolveNameHelper(location, name, meaning, /*nameNotFoundMessage*/ undefined, name, /*isUse*/ false, (symbols, name, meaning) => {
14869+
// `name` from the callback === the outer `name`
1486914870
const symbol = getSymbol(symbols, name, meaning);
1487014871
// Sometimes the symbol is found when location is a return type of a function: `typeof x` and `x` is declared in the body of the function
1487114872
// So the table *contains* `x` but `x` isn't actually in scope.

0 commit comments

Comments
 (0)