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