oxc/tasks/transform_conformance/tests
Dunqing 0d0bb17ad9 feat(transformer): complete the async-to-generator plugin (#6658)
In this PR, most of the async functions have transformed correctly. But the async arrow functions don't fully transform correctly yet, it is related to we need to transform the arrow function to the generator function. For example:

Input:
```js
function declaration() {
  const asy = async () => {
  console.log(this.name)
 }
}
```

Output:
```js
function declaration() {
  const asy = babelHelpers.asyncToGenerator(function* () {
     console.log(this.name);
  });
}
```

Expected Output:

```js
function declaration() {
  var _this = this;
  const asy = /*#__PURE__*/function () {
    var _ref = babelHelpers.asyncToGenerator(function* () {
      console.log(_this.name);
    });
    return function asy() {
      return _ref.apply(this, arguments);
    };
  }();
}
```

From the expected output, we haven't handled `this` correctly, which means even if the `arrow-function` plugin doesn't enable, we still need to handle this correctly as the `arrow-function` plugin does, and further question if `arrow-function` plugin is enabled, how to avoid these making conflict?

I thought we may move out the implementation of `arrow-function` and as a common helper, this way every plugin can handle this well
2024-10-25 03:23:31 +00:00
..
babel-plugin-transform-arrow-functions/test/fixtures fix(transformer): fix arrow function transform (#5933) 2024-09-21 07:48:18 +00:00
babel-plugin-transform-async-to-generator/test/fixtures feat(transformer): complete the async-to-generator plugin (#6658) 2024-10-25 03:23:31 +00:00
babel-plugin-transform-class-static-block/test/fixtures feat(transformer): class static block transform (#6733) 2024-10-22 03:40:02 +00:00
babel-plugin-transform-exponentiation-operator/test/fixtures test(transformer): fix indentation in transformer test fixtures (#6346) 2024-10-08 01:32:07 +00:00
babel-plugin-transform-nullish-coalescing-operator/test/fixtures fix(traverse): invalid variable name generated by generate_uid_based_on_node (#5407) 2024-09-03 12:13:30 +00:00
babel-plugin-transform-optional-catch-binding/test/fixtures test(transformer): add trailing line breaks to conformance fixtures (#5537) 2024-09-06 12:02:46 +00:00
babel-plugin-transform-react-jsx/test/fixtures fix(transformer): Correctly trim JSX (#6639) 2024-10-17 14:41:02 +00:00
babel-plugin-transform-react-jsx-source/test/fixtures/react-source fix(transformer): JSX source: add var _jsxFileName statement (#5894) 2024-09-20 01:26:52 +00:00
babel-plugin-transform-typescript/test/fixtures fix(transformer/typescript): retain ExportNamedDeclaration without specifiers and declaration (#6848) 2024-10-24 07:59:07 +00:00
babel-preset-typescript/test/fixtures/removeImportExtensions feat(transformer/typescript): support rewrite_import_extensions option (#5399) 2024-09-03 01:57:42 +00:00
regexp/test/fixtures test(transformer): fix indentation in transformer test fixtures (#6346) 2024-10-08 01:32:07 +00:00