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