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