oxc/crates/oxc_semantic/tests/util
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
..
class_tester.rs refactor(semantic): remove all #[dead_code[ from tester 2024-01-25 20:27:46 +08:00
expect.rs refactor(semantic): remove all #[dead_code[ from tester 2024-01-25 20:27:46 +08:00
mod.rs refactor: move all miette usages to oxc_diagnostics 2024-01-28 16:52:16 +08:00
symbol_tester.rs fix(semantic): symbols inside functions and classes incorrectly flagged as exported (#2896) 2024-04-05 23:01:27 +08:00