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