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