oxc/crates/oxc_ast/src
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
..
ast fix(traverse): create scope for function nested in class method (#3234) 2024-05-11 12:07:00 +00:00
syntax_directed_operations refactor(ast): squash nested enums (#3115) 2024-04-28 20:40:37 +08:00
visit fix(parser): correctly parse cls.fn<C> = x (#3208) 2024-05-09 10:23:45 +08:00
ast_builder.rs refactor(ast): order AST type fields in visitation order (#3228) 2024-05-11 04:39:39 +00:00
ast_kind.rs refactor(ast): squash nested enums (#3115) 2024-04-28 20:40:37 +08:00
lib.rs refactor(ast): squash nested enums (#3115) 2024-04-28 20:40:37 +08:00
precedence.rs refactor(ast): squash nested enums (#3115) 2024-04-28 20:40:37 +08:00
serialize.rs refactor(coverage): avoid an String::from_utf8 over head during serialization (#3145) 2024-04-30 23:11:22 +08:00
span.rs fix(parser): correctly parse cls.fn<C> = x (#3208) 2024-05-09 10:23:45 +08:00
trivia.rs refactor(ast): refactor Trivias API - have less noise around it (#2692) 2024-03-12 20:16:36 +08:00