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

Function typeParameterShadowsNameInScope

test/fixtures/snapshot/typescript.js:53735–53744  ·  view source on GitHub ↗
(escapedName, context, type)

Source from the content-addressed store, hash-verified

53733 }
53734 }
53735 function typeParameterShadowsNameInScope(escapedName, context, type) {
53736 var result = resolveName(context.enclosingDeclaration, escapedName, 788968 /* SymbolFlags.Type */, /*nameNotFoundArg*/ undefined, escapedName, /*isUse*/ false);
53737 if (result) {
53738 if (result.flags & 262144 /* SymbolFlags.TypeParameter */ && result === type.symbol) {
53739 return false;
53740 }
53741 return true;
53742 }
53743 return false;
53744 }
53745 function typeParameterToName(type, context) {
53746 var _a, _b;
53747 if (context.flags & 4 /* NodeBuilderFlags.GenerateNamesForShadowedTypeParams */ && context.typeParameterNames) {

Callers 1

typeParameterToNameFunction · 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…