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