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

Function checkUnusedInferTypeParameter

test/fixtures/snapshot/typescript.js:82040–82045  ·  view source on GitHub ↗
(node, addDiagnostic)

Source from the content-addressed store, hash-verified

82038 }
82039 }
82040 function checkUnusedInferTypeParameter(node, addDiagnostic) {
82041 var typeParameter = node.typeParameter;
82042 if (isTypeParameterUnused(typeParameter)) {
82043 addDiagnostic(node, 1 /* UnusedKind.Parameter */, ts.createDiagnosticForNode(node, ts.Diagnostics._0_is_declared_but_its_value_is_never_read, ts.idText(typeParameter.name)));
82044 }
82045 }
82046 function checkUnusedTypeParameters(node, addDiagnostic) {
82047 // Only report errors on the last declaration for the type parameter container;
82048 // this ensures that all uses have been accounted for.

Callers 1

checkUnusedIdentifiersFunction · 0.85

Calls 1

isTypeParameterUnusedFunction · 0.85

Tested by

no test coverage detected