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