diff --git a/crates/oxc_ast/src/ast/ts.rs b/crates/oxc_ast/src/ast/ts.rs index 3afd02edcd..f5ccaca12e 100644 --- a/crates/oxc_ast/src/ast/ts.rs +++ b/crates/oxc_ast/src/ast/ts.rs @@ -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, + /// 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>, diff --git a/crates/oxc_ast/src/generated/ast_builder.rs b/crates/oxc_ast/src/generated/ast_builder.rs index 6106046c74..9648488cc2 100644 --- a/crates/oxc_ast/src/generated/ast_builder.rs +++ b/crates/oxc_ast/src/generated/ast_builder.rs @@ -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(