oxc/crates/oxc_semantic/tests
Don Isaac 1ea24ea0a7
fix(semantic): symbols inside functions and classes incorrectly flagged as exported (#2896)
# What This PR Does

Symbols declared inside exported functions and classes were being
incorrectly flagged with `SymbolFlags::Export`.

For example,
```ts
export function foo<T>(a: T) {
  let b = String(a)
  return b
}
```
`T`, `a`, and `b` were all flagged as exported.

## Further Work
It doesn't seem like exported enums and interfaces are being included in
`ModuleRecord`. Am I looking in the wrong place, or are they actually
missing?
2024-04-05 23:01:27 +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 fix(semantic): symbols inside functions and classes incorrectly flagged as exported (#2896) 2024-04-05 23:01:27 +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 fix(semantic): symbols inside functions and classes incorrectly flagged as exported (#2896) 2024-04-05 23:01:27 +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