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