oxc/tasks
Dunqing f51d3f9169 feat(transformer/nullish-coalescing-operator): handles nullish coalescing expression in the FormalParamter (#4975)
### What I did in this PR
1. Replace `self.clone_identifier_reference` with `ctx.clone_identifier.reference`
2. Remove the usage of `ast.copy`
3. Handle below example correctly

### Example

```js
// Input
var foo = object.foo ?? "default";

// Output
var _object$foo;
var foo =
(_object$foo = object.foo) !== null && _object$foo !== void 0
  ? _object$foo
  : "default";
```
2024-08-20 01:06:37 +00:00
..
ast_tools refactor(ast): make AstBuilder non-exhaustive (#4925) 2024-08-19 05:32:30 +00:00
benchmark chore(deps): update npm packages (#4958) 2024-08-18 23:07:20 +00:00
common feat(coverage): check symbols and scopes after transformation (#4917) 2024-08-16 07:05:11 +00:00
coverage chore(semantic): add PostTransformChecker (#4967) 2024-08-19 05:38:27 +00:00
javascript_globals chore: turn off doctest for all [[bin]] 2024-07-14 16:55:19 +08:00
lint_rules feat(docs): add tracking for plugins "promise" and "vitest" (#4668) 2024-08-05 19:01:44 -04:00
minsize fix(minifier): avoid removing function declaration from KeepVar (#4722) 2024-08-07 05:09:32 +00:00
prettier_conformance perf: replace some CompactStr usages with Cows (#4377) 2024-07-20 19:19:55 +00:00
rulegen feat(rulegen): improve examples in documentation (#4815) 2024-08-10 18:48:59 -04:00
transform_conformance feat(transformer/nullish-coalescing-operator): handles nullish coalescing expression in the FormalParamter (#4975) 2024-08-20 01:06:37 +00:00
website feat(website): add link to rule source on docs page (#4995) 2024-08-19 20:40:14 +00:00