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

Function errorUnusedLocal

test/fixtures/snapshot/typescript.js:81995–81999  ·  view source on GitHub ↗
(declaration, name, addDiagnostic)

Source from the content-addressed store, hash-verified

81993 }
81994 }
81995 function errorUnusedLocal(declaration, name, addDiagnostic) {
81996 var node = ts.getNameOfDeclaration(declaration) || declaration;
81997 var message = isTypeDeclaration(declaration) ? ts.Diagnostics._0_is_declared_but_never_used : ts.Diagnostics._0_is_declared_but_its_value_is_never_read;
81998 addDiagnostic(declaration, 0 /* UnusedKind.Local */, ts.createDiagnosticForNode(node, message, name));
81999 }
82000 function isIdentifierThatStartsWithUnderscore(node) {
82001 return ts.isIdentifier(node) && ts.idText(node).charCodeAt(0) === 95 /* CharacterCodes._ */;
82002 }

Callers 1

Calls 1

isTypeDeclarationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…