From 1df6ac0427de34ccaa0a8cb75712fabc2da89739 Mon Sep 17 00:00:00 2001 From: rzvxa <3788964+rzvxa@users.noreply.github.com> Date: Tue, 2 Jul 2024 09:19:42 +0000 Subject: [PATCH] refactor(ast)!: rename `visit_enum_memeber` to `visit_ts_enum_member`. (#4000) --- crates/oxc_ast/src/visit/visit.rs | 4 ++-- crates/oxc_semantic/src/builder.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/oxc_ast/src/visit/visit.rs b/crates/oxc_ast/src/visit/visit.rs index 6a1a5a50ce1b0..834413cd386d5 100644 --- a/crates/oxc_ast/src/visit/visit.rs +++ b/crates/oxc_ast/src/visit/visit.rs @@ -625,7 +625,7 @@ pub trait Visit<'a>: Sized { walk_module_export_name(self, name); } - fn visit_enum_member(&mut self, member: &TSEnumMember<'a>) { + fn visit_ts_enum_member(&mut self, member: &TSEnumMember<'a>) { walk_enum_member(self, member); } @@ -2556,7 +2556,7 @@ pub mod walk { visitor.visit_binding_identifier(&decl.id); visitor.enter_scope(ScopeFlags::empty()); for member in &decl.members { - visitor.visit_enum_member(member); + visitor.visit_ts_enum_member(member); } visitor.leave_scope(); visitor.leave_node(kind); diff --git a/crates/oxc_semantic/src/builder.rs b/crates/oxc_semantic/src/builder.rs index 0a2dac9ef2c92..357963f40ae74 100644 --- a/crates/oxc_semantic/src/builder.rs +++ b/crates/oxc_semantic/src/builder.rs @@ -1584,7 +1584,7 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> { self.enter_scope(ScopeFlags::empty()); decl.scope_id.set(Some(self.current_scope_id)); for member in &decl.members { - self.visit_enum_member(member); + self.visit_ts_enum_member(member); } self.leave_scope(); self.leave_node(kind);