oxc/tasks/ast_codegen
overlookmotel 790c551c5e refactor(ast_codegen): simplify derive_get_span generator (#4757)
Simplify `derive_get_span` generator that was introduced in #4735. No change to functionality, just aiming for greater readability.

In particular:

* Move defining idents/tokens which are specific to `GetSpan` / `GetSpanMut` into those specific generators, rather than branching on `MUT` later on.
* Remove `const MUT` param.
* Remove the confusing pairs of closures and functions both called `derive_enum` / `derive_struct`.
* Inline function which generates the impls - prioritizing readability over DRY code.
2024-08-08 10:47:37 +00:00
..
src refactor(ast_codegen): simplify derive_get_span generator (#4757) 2024-08-08 10:47:37 +00:00
Cargo.toml chore: turn off doctest for all [[bin]] 2024-07-14 16:55:19 +08:00