mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
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. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||