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