docs(traverse): fix docs for BoundIdentifier + MaybeBoundIdentifier (#7417)

This commit is contained in:
overlookmotel 2024-11-22 10:58:34 +00:00
parent 27b2268a6c
commit be5f843a12
2 changed files with 4 additions and 2 deletions

View file

@ -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,

View file

@ -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,