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

Function getGlobalSymbol

test/fixtures/snapshot/typescript.js:60671–60674  ·  view source on GitHub ↗
(name, meaning, diagnostic)

Source from the content-addressed store, hash-verified

60669 return symbol;
60670 }
60671 function getGlobalSymbol(name, meaning, diagnostic) {
60672 // Don't track references for global symbols anyway, so value if `isReference` is arbitrary
60673 return resolveName(undefined, name, meaning, diagnostic, name, /*isUse*/ false, /*excludeGlobals*/ false, /*getSpellingSuggestions*/ false);
60674 }
60675 function getGlobalType(name, arity, reportErrors) {
60676 var symbol = getGlobalTypeSymbol(name, reportErrors);
60677 return symbol || reportErrors ? getTypeOfGlobalSymbol(symbol, arity) : undefined;

Callers 6

getGlobalValueSymbolFunction · 0.85
getGlobalTypeSymbolFunction · 0.85
getGlobalTypeAliasSymbolFunction · 0.85
getGlobalTypeOrUndefinedFunction · 0.85
getJsxNamespaceAtFunction · 0.85

Calls 1

resolveNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…