MCPcopy Index your code
hub / github.com/nodejs/node / resolveName

Function resolveName

test/fixtures/snapshot/typescript.js:49645–49649  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Calls 1

resolveNameHelperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…