oxc/crates/oxc_semantic
Dunqing b8d2bd2eba refactor(semantic): move determining references flags for export specifier to visit_export_named_declaration (#7924)
``` ts
export type { a };
export { type b };
```

In the above cases, `a` and `b` are both type-only references. Before, we handled them in `visit_export_named_declaration` and `visit_export_specifier`, but it doesn't look intuitive due to we need to determine
if `ExportNamedSpecifier` is a type-only in `visit_export_specifier ` by checking if `current_reference_flags` is a type, and also needs to set it back before exit node.

This PR moves determining reference flags from `visit_export_specifier` to `visit_export_named_declaration` so that we don't need to check `current_reference_flags` and set it back because here we can always know the
 if `ExportSpecifierNamed` is type-only by `ExportNamedDeclaration::export_kind::is_type`.
2024-12-16 02:26:53 +00:00
..
examples feat(parser)!: Build ModuleRecord directly in parser (#7546) 2024-11-29 14:50:42 +00:00
src refactor(semantic): move determining references flags for export specifier to visit_export_named_declaration (#7924) 2024-12-16 02:26:53 +00:00
tests fix(semantic): reset references flags when resolved (#7923) 2024-12-16 02:26:52 +00:00
Cargo.toml release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
CHANGELOG.md release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00