oxc/crates
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
..
oxc Release crates v0.11.2 2024-04-03 19:36:54 +08:00
oxc_allocator Release crates v0.11.2 2024-04-03 19:36:54 +08:00
oxc_ast chore: fix clippy on unsafe comment 2024-04-03 19:57:21 +08:00
oxc_cli chore: only build the allocators in release mode because they are slow to build (60s) 2024-04-02 17:39:01 +08:00
oxc_codegen chore: fix clippy on unsafe comment 2024-04-03 19:57:21 +08:00
oxc_diagnostics Release crates v0.11.2 2024-04-03 19:36:54 +08:00
oxc_index Release crates v0.11.2 2024-04-03 19:36:54 +08:00
oxc_js_regex refactor: rename CompactString to CompactStr (#2619) 2024-03-06 12:24:23 +08:00
oxc_language_server chore: apply cargo autoinherit (#2826) 2024-03-26 23:57:50 +08:00
oxc_linter feat(linter): Implement jsdoc/check-access (#2642) 2024-04-04 22:36:39 +08:00
oxc_macros chore: bump syn to v2 (#2888) 2024-04-02 20:57:09 +08:00
oxc_minifier Release crates v0.11.2 2024-04-03 19:36:54 +08:00
oxc_module_lexer refactor(ast): add walk_mut functions (#2776) 2024-03-25 20:40:13 +03:30
oxc_parser chore: fix clippy on unsafe comment 2024-04-03 19:57:21 +08:00
oxc_prettier chore: guard against unsafe code as much as possible. 2024-04-03 19:35:07 +08:00
oxc_semantic fix(semantic): symbols inside functions and classes incorrectly flagged as exported (#2896) 2024-04-05 23:01:27 +08:00
oxc_sourcemap Release crates v0.11.2 2024-04-03 19:36:54 +08:00
oxc_span Release crates v0.11.2 2024-04-03 19:36:54 +08:00
oxc_syntax fix(semantic): symbols inside functions and classes incorrectly flagged as exported (#2896) 2024-04-05 23:01:27 +08:00
oxc_transformer Release crates v0.11.2 2024-04-03 19:36:54 +08:00
oxc_wasm feat(transformer): add transform-typescript boilerplate (#2866) 2024-03-30 20:48:35 +08:00