diff --git a/crates/oxc_traverse/src/context.rs b/crates/oxc_traverse/src/context.rs index eed575f4c..2bb2d7223 100644 --- a/crates/oxc_traverse/src/context.rs +++ b/crates/oxc_traverse/src/context.rs @@ -34,7 +34,7 @@ pub enum FinderRet { // Public methods impl<'a> TraverseCtx<'a> { /// Create new traversal context. - pub fn new(allocator: &'a Allocator) -> Self { + pub(crate) fn new(allocator: &'a Allocator) -> Self { let mut stack = Vec::with_capacity(INITIAL_STACK_CAPACITY); stack.push(Ancestor::None); Self { stack, ast: AstBuilder::new(allocator) }