Skip to content

Commit

Permalink
docs(traverse): fix docs for BoundIdentifier + MaybeBoundIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Nov 22, 2024
1 parent 27b2268 commit 88966eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/oxc_traverse/src/context/bound_identifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion crates/oxc_traverse/src/context/maybe_bound_identifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 88966eb

Please sign in to comment.