mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
docs(ast): move type annotation span comment to span field (#26522)
This commit is contained in:
@@ -187,8 +187,8 @@ pub enum TSEnumMemberName<'a> {
|
||||
#[generate_derive(CloneIn, Dummy, ReplaceWith, TakeIn)]
|
||||
#[generate_derive(ContentEq, ESTree, GetNodeId, GetSpan, GetSpanMut, UnstableAddress)]
|
||||
pub struct TSTypeAnnotation<'a> {
|
||||
/// starts at the `:` token and ends at the end of the type annotation
|
||||
pub node_id: Cell<NodeId>,
|
||||
/// Starts at the `:` token and ends at the end of the type annotation.
|
||||
pub span: Span,
|
||||
/// The actual type in the annotation
|
||||
pub type_annotation: TSType<'a>,
|
||||
|
||||
@@ -21081,7 +21081,7 @@ impl<'a> TSTypeAnnotation<'a> {
|
||||
/// use [`TSTypeAnnotation::boxed`] instead.
|
||||
///
|
||||
/// ## Parameters
|
||||
/// * `span`: The [`Span`] covering this node
|
||||
/// * `span`: Starts at the `:` token and ends at the end of the type annotation.
|
||||
/// * `type_annotation`: The actual type in the annotation
|
||||
#[inline]
|
||||
pub fn new(span: Span, type_annotation: TSType<'a>, builder: &impl GetAstBuilder<'a>) -> Self {
|
||||
@@ -21095,7 +21095,7 @@ impl<'a> TSTypeAnnotation<'a> {
|
||||
/// If you want a stack-allocated node, use [`TSTypeAnnotation::new`] instead.
|
||||
///
|
||||
/// ## Parameters
|
||||
/// * `span`: The [`Span`] covering this node
|
||||
/// * `span`: Starts at the `:` token and ends at the end of the type annotation.
|
||||
/// * `type_annotation`: The actual type in the annotation
|
||||
#[inline]
|
||||
pub fn boxed(
|
||||
|
||||
Reference in New Issue
Block a user