(node)
| 94 | const knownKeyObjectClassNames = new Set(keyObjectClassNames); |
| 95 | |
| 96 | function isIsKeyObjectCall(node) { |
| 97 | if (node?.type !== 'CallExpression') return false; |
| 98 | |
| 99 | if (node.callee.type === 'Identifier') { |
| 100 | return isKeyObjectNames.has(node.callee.name); |
| 101 | } |
| 102 | |
| 103 | if (node.callee.type === 'MemberExpression' && |
| 104 | !node.callee.computed && |
| 105 | node.callee.object.type === 'Identifier' && |
| 106 | namespaceNames.has(node.callee.object.name)) { |
| 107 | return node.callee.property.name === 'isKeyObject'; |
| 108 | } |
| 109 | |
| 110 | return false; |
| 111 | } |
| 112 | |
| 113 | function getConsequentKeyObjects(test) { |
| 114 | const names = new Set(); |
no test coverage detected
searching dependent graphs…