oxc/crates
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
..
oxc Release crates v0.12.5 2024-04-22 12:52:17 +08:00
oxc_allocator deps(allocator): disable serde dep by default (#3120) 2024-04-28 22:17:32 +08:00
oxc_ast fix(traverse): create scope for function nested in class method (#3234) 2024-05-11 12:07:00 +00:00
oxc_ast_macros feat(transform): oxc_traverse crate (#3169) 2024-05-06 09:37:04 +08:00
oxc_cli feat(linter): add --format github for github check annotation (#3191) 2024-05-07 20:55:10 +08:00
oxc_codegen fix(parser): correctly parse cls.fn<C> = x (#3208) 2024-05-09 10:23:45 +08:00
oxc_diagnostics refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
oxc_index chore(deps): update dependency rust to v1.78.0 (#3151) 2024-05-03 00:01:42 +08:00
oxc_js_regex
oxc_language_server refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
oxc_linter refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
oxc_macros refactor(linter): reduce llvm lines generated by RuleEnum::read_json (#3207) 2024-05-08 21:53:06 +08:00
oxc_minifier refactor(syntax): move number related functions to number module (#3130) 2024-04-29 18:54:35 +08:00
oxc_module_lexer refactor(ast): squash nested enums (#3115) 2024-04-28 20:40:37 +08:00
oxc_parser refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
oxc_prettier fix(parser): correctly parse cls.fn<C> = x (#3208) 2024-05-09 10:23:45 +08:00
oxc_semantic improvement(semantic/cfg): add explicit break block element. (#3223) 2024-05-10 22:22:30 +08:00
oxc_sourcemap feat(sourcemap): add "rayon" feature (#3198) 2024-05-07 23:47:36 +08:00
oxc_span refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
oxc_syntax fix(traverse): create scope for function nested in class method (#3234) 2024-05-11 12:07:00 +00:00
oxc_transformer fix(transformer): correctly jsx-self inside arrow-function (#3224) 2024-05-11 00:48:18 +00:00
oxc_traverse fix(traverse): create scope for function nested in class method (#3234) 2024-05-11 12:07:00 +00:00
oxc_wasm refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00