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

Function isInGenericContext

test/fixtures/snapshot/typescript.js:161434–161436  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

161432 }
161433 return { target: target, usagesPerScope: usagesPerScope, functionErrorsPerScope: functionErrorsPerScope, constantErrorsPerScope: constantErrorsPerScope, exposedVariableDeclarations: exposedVariableDeclarations };
161434 function isInGenericContext(node) {
161435 return !!ts.findAncestor(node, function (n) { return ts.isDeclarationWithTypeParameters(n) && ts.getEffectiveTypeParameterDeclarations(n).length !== 0; });
161436 }
161437 function recordTypeParameterUsages(type) {
161438 // PERF: This is potentially very expensive. `type` could be a library type with
161439 // a lot of properties, each of which the walker will visit. Unfortunately, the

Callers 1

collectReadsAndWritesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected