diff --git a/crates/oxc_traverse/src/ast_operations/mod.rs b/crates/oxc_traverse/src/ast_operations/mod.rs index ff903a9a8f32b..8807bd67081fc 100644 --- a/crates/oxc_traverse/src/ast_operations/mod.rs +++ b/crates/oxc_traverse/src/ast_operations/mod.rs @@ -1,4 +1,4 @@ mod gather_node_parts; -pub use self::gather_node_parts::get_var_name_from_node; +pub use self::gather_node_parts::{get_var_name_from_node, GatherNodeParts}; mod identifier; pub use identifier::to_identifier; diff --git a/crates/oxc_traverse/src/context/mod.rs b/crates/oxc_traverse/src/context/mod.rs index 3e61dffb0b454..7192769577b67 100644 --- a/crates/oxc_traverse/src/context/mod.rs +++ b/crates/oxc_traverse/src/context/mod.rs @@ -13,7 +13,7 @@ use oxc_syntax::{ use crate::{ ancestor::{Ancestor, AncestorType}, - ast_operations::get_var_name_from_node, + ast_operations::{get_var_name_from_node, GatherNodeParts}, }; mod ancestry; @@ -352,9 +352,9 @@ impl<'a> TraverseCtx<'a> { /// Based on Babel's `scope.generateUidBasedOnNode` logic. /// #[inline] - pub fn generate_uid_based_on_node( + pub fn generate_uid_based_on_node>( &mut self, - node: &Expression<'a>, + node: &N, scope_id: ScopeId, flags: SymbolFlags, ) -> BoundIdentifier<'a> { @@ -367,9 +367,9 @@ impl<'a> TraverseCtx<'a> { /// See also comments on [`TraverseScoping::generate_uid_name`] for important information /// on how UIDs are generated. There are some potential "gotchas". #[inline] - pub fn generate_uid_in_current_scope_based_on_node( + pub fn generate_uid_in_current_scope_based_on_node>( &mut self, - node: &Expression<'a>, + node: &N, flags: SymbolFlags, ) -> BoundIdentifier<'a> { self.generate_uid_based_on_node(node, self.current_scope_id(), flags)