oxc/crates/oxc_parser
overlookmotel fdd480d84c refactor(parser): do not use AstBuilder::*_from_* methods (#7068)
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.
2024-11-02 01:22:55 +00:00
..
examples fix(regular_expression)!: Migrate to new regexp parser API (#6741) 2024-10-22 05:34:18 +00:00
src refactor(parser): do not use AstBuilder::*_from_* methods (#7068) 2024-11-02 01:22:55 +00:00
Cargo.toml release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
CHANGELOG.md release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00