(node, c)
| 231 | function cleanUp(ast, names) { |
| 232 | recursiveWalk(ast, { |
| 233 | ForStatement(node, c) { |
| 234 | visitChildren(node, c); |
| 235 | // If we had `for (var x = ...; ...)` and we removed `x`, we need to change to `for (; ...)`. |
| 236 | if (node.init?.type === 'EmptyStatement') { |
| 237 | node.init = null; |
| 238 | } |
| 239 | }, |
| 240 | ForInStatement(node, c) { |
| 241 | // We can't remove the var in a for-in, as that would result in an invalid syntax. Skip the LHS. |
| 242 | c(node.right); |
nothing calls this directly
no test coverage detected