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

Function getAlternateCryptoKeys

tools/eslint-rules/no-cryptokey-public-accessors.js:131–140  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

129 }
130
131 function getAlternateCryptoKeys(test) {
132 const names = new Set();
133 if (test?.type === 'UnaryExpression' &&
134 test.operator === '!' &&
135 isIsCryptoKeyCall(test.argument)) {
136 names.add(getIdentifierArgument(test.argument));
137 }
138 names.delete(undefined);
139 return names;
140 }
141
142 function isCryptoKeyFactory(node) {
143 if (node?.type === 'NewExpression' &&

Callers 2

isInCryptoKeyBranchFunction · 0.85

Calls 4

isIsCryptoKeyCallFunction · 0.85
getIdentifierArgumentFunction · 0.70
addMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…