Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/oxc_traverse/src/context/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use oxc_allocator::{Allocator, Box, Vec as ArenaVec};
use oxc_allocator::{Allocator, Box as ArenaBox, Vec as ArenaVec};
use oxc_ast::{
AstBuilder,
ast::{Expression, IdentifierReference, Statement},
Expand Down Expand Up @@ -122,11 +122,11 @@ pub struct TraverseCtx<'a> {
impl<'a> TraverseCtx<'a> {
/// Allocate a node in the arena.
///
/// Returns a [`Box<T>`].
/// Returns a [`Box<'a, T>`](ArenaBox).
///
/// Shortcut for `ctx.ast.alloc`.
#[inline]
pub fn alloc<T>(&self, node: T) -> Box<'a, T> {
pub fn alloc<T>(&self, node: T) -> ArenaBox<'a, T> {
self.ast.alloc(node)
}

Expand Down
Loading