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