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