From f69ad9b7a126279293a06f074e7253379a672279 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Fri, 13 Dec 2024 19:49:08 +0000 Subject: [PATCH] refactor(transformer/class-properties): instance prop inits visitor use `Visit` --- .../src/es2022/class_properties/instance_prop_init.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_transformer/src/es2022/class_properties/instance_prop_init.rs b/crates/oxc_transformer/src/es2022/class_properties/instance_prop_init.rs index adc4399d83303b..0f4b25595f1268 100644 --- a/crates/oxc_transformer/src/es2022/class_properties/instance_prop_init.rs +++ b/crates/oxc_transformer/src/es2022/class_properties/instance_prop_init.rs @@ -3,7 +3,7 @@ use std::cell::Cell; -use oxc_ast::{ast::*, visit::VisitMut}; +use oxc_ast::{ast::*, visit::Visit}; use oxc_syntax::scope::{ScopeFlags, ScopeId}; use oxc_traverse::TraverseCtx; @@ -45,7 +45,7 @@ impl<'a, 'v> InstanceInitializerVisitor<'a, 'v> { } } -impl<'a, 'v> VisitMut<'a> for InstanceInitializerVisitor<'a, 'v> { +impl<'a, 'v> Visit<'a> for InstanceInitializerVisitor<'a, 'v> { /// Update parent scope for first level of scopes. /// Convert scope to sloppy mode if `self.make_sloppy_mode == true`. fn enter_scope(&mut self, _flags: ScopeFlags, scope_id: &Cell>) {