Skip to content

Commit

Permalink
refactor(transformer/class-properties): instance prop inits visitor u…
Browse files Browse the repository at this point in the history
…se `Visit`
  • Loading branch information
overlookmotel committed Dec 14, 2024
1 parent 3c808b7 commit f69ad9b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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<Option<ScopeId>>) {
Expand Down

0 comments on commit f69ad9b

Please sign in to comment.