diff --git a/crates/oxc_traverse/src/context/bound_identifier.rs b/crates/oxc_traverse/src/context/bound_identifier.rs index 5fbaa063b3209..ba46995c387ba 100644 --- a/crates/oxc_traverse/src/context/bound_identifier.rs +++ b/crates/oxc_traverse/src/context/bound_identifier.rs @@ -250,7 +250,8 @@ impl<'a> BoundIdentifier<'a> { Expression::Identifier(ctx.alloc(ident)) } - /// Create `Expression::Identifier` referencing this binding, with specified `Span` and `ReferenceFlags` + /// Create `AssignmentTarget::AssignmentTargetIdentifier` referencing this binding, + /// with specified `Span` and `ReferenceFlags` pub fn create_spanned_target( &self, span: Span, diff --git a/crates/oxc_traverse/src/context/maybe_bound_identifier.rs b/crates/oxc_traverse/src/context/maybe_bound_identifier.rs index 6dc1451ccf3ed..e729ba9b396b2 100644 --- a/crates/oxc_traverse/src/context/maybe_bound_identifier.rs +++ b/crates/oxc_traverse/src/context/maybe_bound_identifier.rs @@ -232,7 +232,8 @@ impl<'a> MaybeBoundIdentifier<'a> { Expression::Identifier(ctx.alloc(ident)) } - /// Create `Expression::Identifier` referencing this binding, with specified `Span` and `ReferenceFlags` + /// Create `AssignmentTarget::AssignmentTargetIdentifier` referencing this binding, + /// with specified `Span` and `ReferenceFlags` pub fn create_spanned_target( &self, span: Span,