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