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

Function unusedIsError

test/fixtures/snapshot/typescript.js:85925–85937  ·  view source on GitHub ↗
(kind, isAmbient)

Source from the content-addressed store, hash-verified

85923 ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();
85924 }
85925 function unusedIsError(kind, isAmbient) {
85926 if (isAmbient) {
85927 return false;
85928 }
85929 switch (kind) {
85930 case 0 /* UnusedKind.Local */:
85931 return !!compilerOptions.noUnusedLocals;
85932 case 1 /* UnusedKind.Parameter */:
85933 return !!compilerOptions.noUnusedParameters;
85934 default:
85935 return ts.Debug.assertNever(kind);
85936 }
85937 }
85938 function getPotentiallyUnusedIdentifiers(sourceFile) {
85939 return allPotentiallyUnusedIdentifiers.get(sourceFile.path) || ts.emptyArray;
85940 }

Callers 2

createTypeCheckerFunction · 0.85
checkSourceFileWorkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…