Skip to content

Commit

Permalink
refactor(ast)!: rename visit_enum_memeber to visit_ts_enum_member. (
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Jul 2, 2024
1 parent 4a0eaa0 commit 1df6ac0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_ast/src/visit/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_semantic/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1df6ac0

Please sign in to comment.