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

Function isIsCryptoKeyCall

tools/eslint-rules/no-cryptokey-public-accessors.js:98–113  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

96 const knownCryptoKeyClassNames = new Set(cryptoKeyClassNames);
97
98 function isIsCryptoKeyCall(node) {
99 if (node?.type !== 'CallExpression') return false;
100
101 if (node.callee.type === 'Identifier') {
102 return isCryptoKeyNames.has(node.callee.name);
103 }
104
105 if (node.callee.type === 'MemberExpression' &&
106 !node.callee.computed &&
107 node.callee.object.type === 'Identifier' &&
108 namespaceNames.has(node.callee.object.name)) {
109 return node.callee.property.name === 'isCryptoKey';
110 }
111
112 return false;
113 }
114
115 function getConsequentCryptoKeys(test) {
116 const names = new Set();

Callers 2

getConsequentCryptoKeysFunction · 0.85
getAlternateCryptoKeysFunction · 0.85

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…