MCPcopy Create free account
hub / github.com/nodejs/node / hasTypeParameterByName

Function hasTypeParameterByName

test/fixtures/snapshot/typescript.js:79749–79751  ·  view source on GitHub ↗
(typeParameters, name)

Source from the content-addressed store, hash-verified

79747 return result;
79748 }
79749 function hasTypeParameterByName(typeParameters, name) {
79750 return ts.some(typeParameters, function (tp) { return tp.symbol.escapedName === name; });
79751 }
79752 function getUniqueTypeParameterName(typeParameters, baseName) {
79753 var len = baseName.length;
79754 while (len > 1 && baseName.charCodeAt(len - 1) >= 48 /* CharacterCodes._0 */ && baseName.charCodeAt(len - 1) <= 57 /* CharacterCodes._9 */)

Callers 2

getUniqueTypeParametersFunction · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected