#[repr(C)]pub struct NullableTypeAnnotation<'gc> {
pub metadata: NodeMetadata<'gc>,
pub type_annotation: &'gc Node<'gc>,
}Expand description
The NullableTypeAnnotation AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
type_annotation: &'gc Node<'gc>ESTree typeAnnotation property.
Implementations§
Source§impl<'gc> NullableTypeAnnotation<'gc>
impl<'gc> NullableTypeAnnotation<'gc>
Sourcepub fn new(metadata: NodeMetadata<'gc>, type_annotation: &'gc Node<'gc>) -> Self
pub fn new(metadata: NodeMetadata<'gc>, type_annotation: &'gc Node<'gc>) -> Self
Build NullableTypeAnnotation from its metadata and ESTree.def
fields.
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for NullableTypeAnnotation<'gc>
impl<'gc> !RefUnwindSafe for NullableTypeAnnotation<'gc>
impl<'gc> !Send for NullableTypeAnnotation<'gc>
impl<'gc> !Sync for NullableTypeAnnotation<'gc>
impl<'gc> !UnwindSafe for NullableTypeAnnotation<'gc>
impl<'gc> Unpin for NullableTypeAnnotation<'gc>
impl<'gc> UnsafeUnpin for NullableTypeAnnotation<'gc>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more