#[repr(C)]pub struct TypeOperator<'gc> {
pub metadata: NodeMetadata<'gc>,
pub operator: Cell<NodeLabel>,
pub type_annotation: &'gc Node<'gc>,
}Expand description
The TypeOperator AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
operator: Cell<NodeLabel>ESTree operator property.
type_annotation: &'gc Node<'gc>ESTree typeAnnotation property.
Implementations§
Source§impl<'gc> TypeOperator<'gc>
impl<'gc> TypeOperator<'gc>
Sourcepub fn new(
metadata: NodeMetadata<'gc>,
operator: NodeLabel,
type_annotation: &'gc Node<'gc>,
) -> Self
pub fn new( metadata: NodeMetadata<'gc>, operator: NodeLabel, type_annotation: &'gc Node<'gc>, ) -> Self
Build TypeOperator from its metadata and ESTree.def fields.
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for TypeOperator<'gc>
impl<'gc> !RefUnwindSafe for TypeOperator<'gc>
impl<'gc> !Send for TypeOperator<'gc>
impl<'gc> !Sync for TypeOperator<'gc>
impl<'gc> !UnwindSafe for TypeOperator<'gc>
impl<'gc> Unpin for TypeOperator<'gc>
impl<'gc> UnsafeUnpin for TypeOperator<'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