oxc/crates
Don Isaac d3eb1c3318
fix(semantic): flag function expressions with SymbolFlags::Function (#2891)
# What This PR Does

Consider the following code snippet

```js
const x = function y () {{
```

`y` will now be flagged with `SymbolFlags::Function`. This follow's
tsc's behavior.

- [Example in OXC
Playground](https://oxc-project.github.io/oxc/playground/?code=3YCAAICagICAgICAgICxG0qZRraXZOpcCHVsSRwDq2kRR0HprsTfRRT5WMw%2Ff2epoIA%3D)
- [Example in TypeScript AST
Viewer](https://ts-ast-viewer.com/#code/MYewdgzgLgBAHjAvDAZgVzMKBLcMCeAFAJQwDeAvgFBA)
2024-04-03 10:42:11 +08:00
..
oxc chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_allocator chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_ast chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_cli chore: only build the allocators in release mode because they are slow to build (60s) 2024-04-02 17:39:01 +08:00
oxc_codegen chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_diagnostics chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_index chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_js_regex refactor: rename CompactString to CompactStr (#2619) 2024-03-06 12:24:23 +08:00
oxc_language_server chore: apply cargo autoinherit (#2826) 2024-03-26 23:57:50 +08:00
oxc_linter feat(linter/tree-shaking): support ArrowFunctionExpression (#2883) 2024-04-02 10:34:32 +08:00
oxc_macros chore: bump syn to v2 (#2888) 2024-04-02 20:57:09 +08:00
oxc_minifier chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_module_lexer refactor(ast): add walk_mut functions (#2776) 2024-03-25 20:40:13 +03:30
oxc_parser chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_prettier chore: Rust v1.77.0 (#2781) 2024-03-21 17:21:57 +00:00
oxc_semantic fix(semantic): flag function expressions with SymbolFlags::Function (#2891) 2024-04-03 10:42:11 +08:00
oxc_sourcemap chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_span chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_syntax chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_transformer chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00
oxc_wasm feat(transformer): add transform-typescript boilerplate (#2866) 2024-03-30 20:48:35 +08:00