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