mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
docs(traverse): fix docs for BoundIdentifier + MaybeBoundIdentifier (#7417)
This commit is contained in:
parent
27b2268a6c
commit
be5f843a12
2 changed files with 4 additions and 2 deletions
|
|
@ -250,7 +250,8 @@ impl<'a> BoundIdentifier<'a> {
|
||||||
Expression::Identifier(ctx.alloc(ident))
|
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(
|
pub fn create_spanned_target(
|
||||||
&self,
|
&self,
|
||||||
span: Span,
|
span: Span,
|
||||||
|
|
|
||||||
|
|
@ -232,7 +232,8 @@ impl<'a> MaybeBoundIdentifier<'a> {
|
||||||
Expression::Identifier(ctx.alloc(ident))
|
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(
|
pub fn create_spanned_target(
|
||||||
&self,
|
&self,
|
||||||
span: Span,
|
span: Span,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue