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

Function getConsequentCryptoKeys

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

Source from the content-addressed store, hash-verified

113 }
114
115 function getConsequentCryptoKeys(test) {
116 const names = new Set();
117 if (isIsCryptoKeyCall(test)) {
118 names.add(getIdentifierArgument(test));
119 } else if (test?.type === 'LogicalExpression' && test.operator === '&&') {
120 for (const name of getConsequentCryptoKeys(test.left)) {
121 names.add(name);
122 }
123 for (const name of getConsequentCryptoKeys(test.right)) {
124 names.add(name);
125 }
126 }
127 names.delete(undefined);
128 return names;
129 }
130
131 function getAlternateCryptoKeys(test) {
132 const names = new Set();

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…