oxc/crates/oxc_parser/src
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
..
js feat(ast): provide NONE type for AST builder calls (#5737) 2024-09-13 02:42:01 +00:00
jsx feat(ast)!: add ThisExpression variants to JSXElementName and JSXMemberExpressionObject (#5466) 2024-09-05 02:06:20 +00:00
lexer perf(rust): use cow_utils instead (#5664) 2024-09-11 18:39:30 +08:00
ts feat(ast): provide NONE type for AST builder calls (#5737) 2024-09-13 02:42:01 +00:00
context.rs
cursor.rs fix(parser): change unterminated regex error to be non-recoverable (#5285) 2024-08-28 01:57:31 +00:00
diagnostics.rs refactor(linter): use meaningful names for diagnostic parameters (#5564) 2024-09-06 18:14:56 -04:00
lib.rs feat(span)!: change SourceType::js to SourceType::cjs and SourceType::mjs (#5606) 2024-09-08 14:11:02 +00:00
modifiers.rs chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
state.rs