oxc/tasks
overlookmotel feac02e65b feat(transformer/class-properties): only rename symbols if necessary (#7896)
#7872 implements renaming symbols in constructor which shadow references in instance property initializers. But we don't need to rename where the reference in initializer references a symbol which is bound within the initializer itself.

Input:

```js
class C {
  double = n => n * 2;
  constructor(n) {
    console.log(n);
  }
}
```

Output:

```js
class C {
  constructor(n) { // <-- not renamed
    this.double = n => n * 2; // <-- moved into constructor
    console.log(n); // <-- not renamed
  }
}
```

This produces better output, and avoids a traversal of constructor's AST renaming symbols.
2024-12-15 01:53:13 +00:00
..
ast_tools refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
benchmark feat(sourcemap): move oxc_sourcemap to github.com/oxc-project/oxc-sourcemap (#7604) 2024-12-03 11:59:43 +00:00
common chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
compat_data refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
coverage refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
javascript_globals feat(linter)!: sync sindresorhus/globals; removed Object.prototype properties from builtin and es* globals (#6991) 2024-10-29 04:13:20 +00:00
lint_rules refactor(tasks/lint_rules): detect typescript alias from mod.rs file (#7891) 2024-12-15 00:14:15 +08:00
minsize test(minifier): reformat minsize table (#7678) 2024-12-05 12:16:29 +00:00
prettier_conformance style(rust): cargo +nightly fmt (#7877) 2024-12-14 06:03:31 +00:00
rulegen feat(linter)!: remove unmaintained security plugin (#7773) 2024-12-10 14:29:22 +00:00
transform_checker refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
transform_conformance feat(transformer/class-properties): only rename symbols if necessary (#7896) 2024-12-15 01:53:13 +00:00
website feat(linter)!: remove unmaintained security plugin (#7773) 2024-12-10 14:29:22 +00:00