#[repr(C)]pub struct LabeledStatement<'gc> {
pub metadata: NodeMetadata<'gc>,
pub label: &'gc Node<'gc>,
pub body: &'gc Node<'gc>,
pub label_index: Cell<u32>,
}Expand description
The LabeledStatement AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
label: &'gc Node<'gc>ESTree label property.
body: &'gc Node<'gc>ESTree body property.
label_index: Cell<u32>Sema: label index; INVALID_LABEL until set.
Implementations§
Source§impl<'gc> LabeledStatement<'gc>
impl<'gc> LabeledStatement<'gc>
Sourcepub fn new(
metadata: NodeMetadata<'gc>,
label: &'gc Node<'gc>,
body: &'gc Node<'gc>,
) -> Self
pub fn new( metadata: NodeMetadata<'gc>, label: &'gc Node<'gc>, body: &'gc Node<'gc>, ) -> Self
Build LabeledStatement from its metadata and ESTree.def fields.
Decoration fields start at their defaults.
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for LabeledStatement<'gc>
impl<'gc> !RefUnwindSafe for LabeledStatement<'gc>
impl<'gc> !Send for LabeledStatement<'gc>
impl<'gc> !Sync for LabeledStatement<'gc>
impl<'gc> !UnwindSafe for LabeledStatement<'gc>
impl<'gc> Unpin for LabeledStatement<'gc>
impl<'gc> UnsafeUnpin for LabeledStatement<'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