mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Preparation for #7073. Avoid using `AstBuilder::*_from_*` methods to construct enums, use explicit construction instead. Before: ```rs let ident = self.ast.binding_pattern_kind_from_binding_identifier(ident); ``` After: ```rs let ident = BindingPatternKind::BindingIdentifier(ident); ``` Often this produces shorter code, as well as (in my opinion) being easier to read. |
||
|---|---|---|
| .. | ||
| mod.rs | ||
| statement.rs | ||
| types.rs | ||