oxc/crates/oxc_semantic
overlookmotel 731ffaa00e 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
2024-09-11 02:12:12 +00:00
..
examples refactor(semantic)!: remove source_type argument from SemanticBuilder::new (#5553) 2024-09-06 16:40:10 +00:00
src refactor(semantic): compare nodes by pointer equality (#5686) 2024-09-11 02:12:12 +00:00
tests feat(span)!: change SourceType::js to SourceType::cjs and SourceType::mjs (#5606) 2024-09-08 14:11:02 +00:00
Cargo.toml chore(dprint): format toml files (#5599) 2024-09-08 14:26:16 +08:00
CHANGELOG.md release: crates v0.27.0 (#5538) 2024-09-06 19:06:29 +08:00