Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(semantic): compare nodes by pointer equality (#5686)
Follow up after #5673. It's safer to compare nodes by pointer equality than by equality of `Span`s. Transformer can create multiple nodes of same type with same span. Once nodes have node IDs, we can use them for comparison instead. That said, `ptr::eq` is much cheaper, as it doesn't have to follow the pointers to check equality. https://godbolt.org/z/hsqaeKr5M
- Loading branch information