(test)
| 111 | } |
| 112 | |
| 113 | function getConsequentKeyObjects(test) { |
| 114 | const names = new Set(); |
| 115 | if (isIsKeyObjectCall(test)) { |
| 116 | names.add(getIdentifierArgument(test)); |
| 117 | } else if (test?.type === 'LogicalExpression' && test.operator === '&&') { |
| 118 | for (const name of getConsequentKeyObjects(test.left)) { |
| 119 | names.add(name); |
| 120 | } |
| 121 | for (const name of getConsequentKeyObjects(test.right)) { |
| 122 | names.add(name); |
| 123 | } |
| 124 | } |
| 125 | names.delete(undefined); |
| 126 | return names; |
| 127 | } |
| 128 | |
| 129 | function getAlternateKeyObjects(test) { |
| 130 | const names = new Set(); |
no test coverage detected
searching dependent graphs…