oxc/crates/oxc_syntax/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
..
class.rs feat(semantic): add static property, ElementKind::Getter, ElementKind::Setter in ClassTable (#2445) 2024-02-20 13:07:48 +08:00
identifier.rs refactor(parser): make is_identifier methods consistent 2024-01-23 11:05:17 +08:00
keyword.rs feat(Codegen): Improve codegen (#2460) 2024-02-21 14:41:57 +08:00
lib.rs refactor(syntax): move number related functions to number module (#3130) 2024-04-29 18:54:35 +08:00
module_graph_visitor.rs feat(syntax): module graph visitor. (#3062) 2024-04-22 10:10:27 +08:00
module_record.rs refactor(syntax): use FxHashMap for ModuleRecord::request_modules (#3124) 2024-04-29 03:37:34 +00:00
node.rs fix(semantic): correctly resolve identifiers inside parameter initializers (#3046) 2024-04-21 23:38:31 +08:00
number.rs feat(syntax): add ToJsInt32 trait for f64 (#3132) 2024-04-29 21:13:04 +08:00
operator.rs chore: silence erroneous RA warnings for Tsify (#2731) 2024-03-15 12:42:12 +00:00
precedence.rs fix(codegen): add parenthesis in binary expression by precedence (#2067) 2024-01-17 23:01:42 +08:00
reference.rs feat: merge features serde and wasm to serialize (#2716) 2024-03-14 17:13:12 +08:00
scope.rs fix(traverse): create scope for function nested in class method (#3234) 2024-05-11 12:07:00 +00:00
symbol.rs feat: merge features serde and wasm to serialize (#2716) 2024-03-14 17:13:12 +08:00
xml_entities.rs