* Resolve a given name for a given meaning at a given location. An error is reported if the name was not found and * the nameNotFoundMessage argument is not undefined. Returns the resolved symbol, or undefined if no symbol with * the given name can be found. * * @
(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions)
| 49643 | * @param isUse If true, this will count towards --noUnusedLocals / --noUnusedParameters. |
| 49644 | */ |
| 49645 | function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions) { |
| 49646 | if (excludeGlobals === void 0) { excludeGlobals = false; } |
| 49647 | if (getSpellingSuggstions === void 0) { getSpellingSuggstions = true; } |
| 49648 | return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions, getSymbol); |
| 49649 | } |
| 49650 | function resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions, lookup) { |
| 49651 | var _a, _b, _c; |
| 49652 | var originalLocation = location; // needed for did-you-mean error reporting, which gathers candidates starting from the original location |
no test coverage detected
searching dependent graphs…