(binding: Binding)
| 3613 | node.type === "DoWhileStatement" |
| 3614 | |
| 3615 | const isLoopVariable = (binding: Binding) => { |
| 3616 | const declaration = binding.declaration.parent |
| 3617 | const loop = declaration?.parent |
| 3618 | return ( |
| 3619 | (loop?.type === "ForInStatement" || loop?.type === "ForOfStatement") && |
| 3620 | loop.left === declaration |
| 3621 | ) |
| 3622 | } |
| 3623 | |
| 3624 | // e.g. not `V` in `if (flag) { var V = type("string") }` |
| 3625 | const isDeclaredInBody = (binding: Binding): boolean => { |