#[repr(C)]pub struct IfStatement<'gc> {
pub metadata: NodeMetadata<'gc>,
pub test: &'gc Node<'gc>,
pub consequent: &'gc Node<'gc>,
pub alternate: Option<&'gc Node<'gc>>,
}Expand description
The IfStatement AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
test: &'gc Node<'gc>ESTree test property.
consequent: &'gc Node<'gc>ESTree consequent property.
alternate: Option<&'gc Node<'gc>>ESTree alternate property.
Implementations§
Source§impl<'gc> IfStatement<'gc>
impl<'gc> IfStatement<'gc>
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for IfStatement<'gc>
impl<'gc> !RefUnwindSafe for IfStatement<'gc>
impl<'gc> !Send for IfStatement<'gc>
impl<'gc> !Sync for IfStatement<'gc>
impl<'gc> !UnwindSafe for IfStatement<'gc>
impl<'gc> Unpin for IfStatement<'gc>
impl<'gc> UnsafeUnpin for IfStatement<'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