(group)
| 200 | // if (true) { const x = 10; } |
| 201 | // |
| 202 | function isLexicalVariableProhibited(group) { |
| 203 | const node = group.getNode(); |
| 204 | const parentNode = group.getParentNode(); |
| 205 | |
| 206 | if (parentNode.type === 'IfStatement') { |
| 207 | return parentNode.consequent === node || parentNode.alternate === node; |
| 208 | } |
| 209 | |
| 210 | if (isAnyForStatement(parentNode) || isAnyWhileStatement(parentNode)) { |
| 211 | return parentNode.body === node; |
| 212 | } |
| 213 | |
| 214 | return false; |
| 215 | } |
| 216 | |
| 217 | function logWarningForVarKind(node) { |
| 218 | if (node.kind === 'var') { |
no test coverage detected
searching dependent graphs…