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