(node)
| 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(); |
no test coverage detected
searching dependent graphs…