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