oxc/crates/oxc_ast
overlookmotel 4e20b04acc fix(traverse): create scope for function nested in class method (#3234)
Fixes a bug in #3229.

The logic to prevent a duplicate scope being created for a `Function` which is a `MethodDefinition` would also stop a scope being created for inner function in:

```rs
class X {
  foo() {
    function bar() {}
  }
}
```

or

```rs
class X {
  foo( bar = function() {} ) {}
}
```

This PR fixes that. This change also allows removing `ScopeFlags::Method` which #3229 added.
2024-05-11 12:07:00 +00:00
..
src fix(traverse): create scope for function nested in class method (#3234) 2024-05-11 12:07:00 +00:00
Cargo.toml feat(transform): oxc_traverse crate (#3169) 2024-05-06 09:37:04 +08:00
CHANGELOG.md Release crates v0.12.5 2024-04-22 12:52:17 +08:00