(path)
| 1574 | recast.types.namedTypes.File.assert(ast) |
| 1575 | recast.visit(ast, { |
| 1576 | visitIdentifier(path) { |
| 1577 | const replacement = replacements.get(path.node.name) |
| 1578 | if (replacement !== undefined) { |
| 1579 | path.replace(replacement) |
| 1580 | } |
| 1581 | this.traverse(path) |
| 1582 | }, |
| 1583 | }) |
| 1584 | } |
| 1585 |