mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
Fix implementations of `ContentEq` and `ContentHash` for literal AST types: * `NullLiteral::content_hash` is a no-op, same as other types which only contain a `Span`. * `NumericLiteral::content_eq` and `content_hash` ignore `base` field. * `NumericLiteral::content_hash` works around `0.0 == -0.0`. * `BigIntLiteral::content_eq` and `content_hash` ignore `base` field. * `StringLiteral::content_hash` ignore `raw` field. * `RegExpLiteral::content_eq` and `content_hash` consider 2 `RegExp`s to be equal if they are printed the same (regardless of whether they were parsed by `oxc_regular_expression` or not). Additionally, implement `StringLiteral::content_eq` manually to avoid "special case" logic in `oxc_ast_tools`. |
||
|---|---|---|
| .. | ||
| ast_tools | ||
| benchmark | ||
| common | ||
| compat_data | ||
| coverage | ||
| javascript_globals | ||
| lint_rules | ||
| minsize | ||
| prettier_conformance | ||
| rulegen | ||
| transform_checker | ||
| transform_conformance | ||
| website | ||