oxc/crates/oxc_syntax/src
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.rs feat(semantic): add static property, ElementKind::Getter, ElementKind::Setter in ClassTable (#2445) 2024-02-20 13:07:48 +08:00
identifier.rs refactor(parser): make is_identifier methods consistent 2024-01-23 11:05:17 +08:00
keyword.rs feat(Codegen): Improve codegen (#2460) 2024-02-21 14:41:57 +08:00
lib.rs feat(transformer): add compiler assumptions (#2872) 2024-03-31 02:04:21 +00:00
module_record.rs fix(semantic): symbols inside functions and classes incorrectly flagged as exported (#2896) 2024-04-05 23:01:27 +08:00
node.rs feat: merge features serde and wasm to serialize (#2716) 2024-03-14 17:13:12 +08:00
operator.rs chore: silence erroneous RA warnings for Tsify (#2731) 2024-03-15 12:42:12 +00:00
precedence.rs fix(codegen): add parenthesis in binary expression by precedence (#2067) 2024-01-17 23:01:42 +08:00
reference.rs feat: merge features serde and wasm to serialize (#2716) 2024-03-14 17:13:12 +08:00
scope.rs feat: merge features serde and wasm to serialize (#2716) 2024-03-14 17:13:12 +08:00
symbol.rs feat: merge features serde and wasm to serialize (#2716) 2024-03-14 17:13:12 +08:00
xml_entities.rs