oxc/crates/oxc_parser
overlookmotel 953fe17f0e feat(ast): provide NONE type for AST builder calls (#5737)
Closes #5736.

Introduce a `NONE` type which can be used for any `AstBuilder` method call param which expects an `IntoIn<'a, Something<'a>>`, where otherwise you have to provide a verbose type annotation.

Before:

```rs
ast.arrow_function_expression(
    SPAN,
    is_expression,
    is_async,
    None::<TSTypeParameterDeclaration>,
    params,
    None::<TSTypeAnnotation>,
    body,
)
```

After:

```rs
ast.arrow_function_expression(SPAN, is_expression, is_async, NONE, params, NONE, body)
```
2024-09-13 02:42:01 +00:00
..
examples feat(ast, parser): add oxc_regular_expression types to the parser and AST. (#5256) 2024-09-03 02:36:37 +00:00
src feat(ast): provide NONE type for AST builder calls (#5737) 2024-09-13 02:42:01 +00:00
Cargo.toml perf(rust): use cow_utils instead (#5664) 2024-09-11 18:39:30 +08:00
CHANGELOG.md release(oxc): crates v0.28.0 (#5696) 2024-09-11 17:57:55 +08:00