function isEquivalentCode(node1, node2) {
  return (
    JSON.stringify(node1, astReplacer) === JSON.stringify(node2, astReplacer)
  );
}
Simplistic comparison between AST node. Only the following patterns are
supported because that's almost all (all?) usage in React:
- Identifiers, e.g. `foo`
- Member access, e.g. `foo.bar`
- Array access with numeric literal, e.g. `foo[0]`