oxc/crates/oxc_semantic
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
..
examples refactor: remove panic! from examples (#2454) 2024-02-20 16:18:39 +08:00
src fix(semantic): flag function expressions with SymbolFlags::Function (#2891) 2024-04-03 10:42:11 +08:00
tests fix(semantic): flag function expressions with SymbolFlags::Function (#2891) 2024-04-03 10:42:11 +08:00
Cargo.toml Release crates v0.11.0 2024-03-30 13:54:53 +08:00
CHANGELOG.md chore: add changelogs via git cliff (#2878) 2024-04-01 20:04:48 +08:00