From 523d48ccb25b4e32c906173ccfbc2dc25f90e81b Mon Sep 17 00:00:00 2001 From: Dunqing <29533304+Dunqing@users.noreply.github.com> Date: Mon, 16 Dec 2024 02:26:50 +0000 Subject: [PATCH] test(transformer): move named test to exports folder (#7922) I made a mistake, I should have put it in the `exports` folder and not `export` --- crates/oxc_semantic/src/builder.rs | 4 ++-- .../oxc/ts/{export => exports}/named/type-and-non-type.snap | 0 .../oxc/ts/{export => exports}/named/type-and-non-type.ts | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename crates/oxc_semantic/tests/fixtures/oxc/ts/{export => exports}/named/type-and-non-type.snap (100%) rename crates/oxc_semantic/tests/fixtures/oxc/ts/{export => exports}/named/type-and-non-type.ts (100%) diff --git a/crates/oxc_semantic/src/builder.rs b/crates/oxc_semantic/src/builder.rs index 10fe077bb014b..80dfd277fd2a6 100644 --- a/crates/oxc_semantic/src/builder.rs +++ b/crates/oxc_semantic/src/builder.rs @@ -1868,12 +1868,12 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> { if let Some(declaration) = &it.declaration { self.visit_declaration(declaration); } - let prev_reference_flags = self.current_reference_flags; + // let prev_reference_flags = self.current_reference_flags; if it.export_kind.is_type() { self.current_reference_flags = ReferenceFlags::Type; } self.visit_export_specifiers(&it.specifiers); - self.current_reference_flags = prev_reference_flags; + // self.current_reference_flags = prev_reference_flags; if let Some(source) = &it.source { self.visit_string_literal(source); diff --git a/crates/oxc_semantic/tests/fixtures/oxc/ts/export/named/type-and-non-type.snap b/crates/oxc_semantic/tests/fixtures/oxc/ts/exports/named/type-and-non-type.snap similarity index 100% rename from crates/oxc_semantic/tests/fixtures/oxc/ts/export/named/type-and-non-type.snap rename to crates/oxc_semantic/tests/fixtures/oxc/ts/exports/named/type-and-non-type.snap diff --git a/crates/oxc_semantic/tests/fixtures/oxc/ts/export/named/type-and-non-type.ts b/crates/oxc_semantic/tests/fixtures/oxc/ts/exports/named/type-and-non-type.ts similarity index 100% rename from crates/oxc_semantic/tests/fixtures/oxc/ts/export/named/type-and-non-type.ts rename to crates/oxc_semantic/tests/fixtures/oxc/ts/exports/named/type-and-non-type.ts