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