oxc/tasks
overlookmotel 97a7992335 fix(ast): fix ContentEq and ContentHash impls for literal types (#8426)
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`.
2025-01-11 02:42:05 +00:00
..
ast_tools fix(ast): fix ContentEq and ContentHash impls for literal types (#8426) 2025-01-11 02:42:05 +00:00
benchmark refactor(linter): refactor LintBuilder to prep for nested configs (#8034) 2025-01-05 04:08:26 +00:00
common
compat_data refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
coverage chore(tasks/coverage): ignore fn-name-cover.js in test262 minifier runtime 2025-01-10 10:47:09 +08:00
javascript_globals
lint_rules fix(tasks/lint_rules): sync unicorn rules with eslint rules (#8224) 2025-01-03 11:39:51 +08:00
minsize fix(minifier): do not minify Object.defineProperty in sequence expressions (#8416) 2025-01-10 12:04:39 +00:00
prettier_conformance refactor(prettier): Update tasks/prettier to correctly handle snapshots (#8337) 2025-01-08 17:10:30 +08:00
rulegen chore(deps): update dependency rust to v1.84.0 (#8391) 2025-01-09 18:11:17 +00:00
transform_checker perf(semantic): allocate UnresolvedReferences in allocator (#8046) 2024-12-20 15:18:16 +00:00
transform_conformance test(transformer/arrow-functions): add decorators to test (#8393) 2025-01-10 03:27:46 +00:00
website docs(tasks/website): add legend for fixable column (#7945) 2024-12-17 10:25:11 +08:00