oxc/crates/oxc_semantic/tests
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
..
cfg_fixtures fix(oxc_semantic): proper traversal of try statements (#2250) 2024-02-01 20:46:38 +08:00
snapshots fix(oxc_semantic): Handle short-circuiting operators in CFG (#2252) 2024-02-01 21:04:28 +08:00
util feat(span): remove From<String> and From<Cow> API because they create memory leak (#2628) 2024-03-06 20:38:21 +08:00
cfg.rs refactor(semantic): remove all #[dead_code[ from tester 2024-01-25 20:27:46 +08:00
classes.rs refactor(semantic): remove all #[dead_code[ from tester 2024-01-25 20:27:46 +08:00
modules.rs refactor(semantic): remove all #[dead_code[ from tester 2024-01-25 20:27:46 +08:00
scopes.rs fix(semantic): incorrect scope for switch statement (#2513) 2024-02-26 22:54:19 +08:00
symbols.rs fix(semantic): flag function expressions with SymbolFlags::Function (#2891) 2024-04-03 10:42:11 +08:00