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