#[repr(C)]pub struct FunctionTypeAnnotation<'gc> {
pub metadata: NodeMetadata<'gc>,
pub params: NodeList<'gc>,
pub this: Option<&'gc Node<'gc>>,
pub return_type: &'gc Node<'gc>,
pub rest: Option<&'gc Node<'gc>>,
pub type_parameters: Option<&'gc Node<'gc>>,
}Expand description
The FunctionTypeAnnotation AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
params: NodeList<'gc>ESTree params property.
this: Option<&'gc Node<'gc>>ESTree this property.
return_type: &'gc Node<'gc>ESTree returnType property.
rest: Option<&'gc Node<'gc>>ESTree rest property.
type_parameters: Option<&'gc Node<'gc>>ESTree typeParameters property.
Implementations§
Source§impl<'gc> FunctionTypeAnnotation<'gc>
impl<'gc> FunctionTypeAnnotation<'gc>
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for FunctionTypeAnnotation<'gc>
impl<'gc> !RefUnwindSafe for FunctionTypeAnnotation<'gc>
impl<'gc> !Send for FunctionTypeAnnotation<'gc>
impl<'gc> !Sync for FunctionTypeAnnotation<'gc>
impl<'gc> !UnwindSafe for FunctionTypeAnnotation<'gc>
impl<'gc> Unpin for FunctionTypeAnnotation<'gc>
impl<'gc> UnsafeUnpin for FunctionTypeAnnotation<'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