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