#[repr(C)]pub struct ConditionalTypeAnnotation<'gc> {
pub metadata: NodeMetadata<'gc>,
pub check_type: &'gc Node<'gc>,
pub extends_type: &'gc Node<'gc>,
pub true_type: &'gc Node<'gc>,
pub false_type: &'gc Node<'gc>,
}Expand description
The ConditionalTypeAnnotation AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
check_type: &'gc Node<'gc>ESTree checkType property.
extends_type: &'gc Node<'gc>ESTree extendsType property.
true_type: &'gc Node<'gc>ESTree trueType property.
false_type: &'gc Node<'gc>ESTree falseType property.
Implementations§
Source§impl<'gc> ConditionalTypeAnnotation<'gc>
impl<'gc> ConditionalTypeAnnotation<'gc>
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for ConditionalTypeAnnotation<'gc>
impl<'gc> !RefUnwindSafe for ConditionalTypeAnnotation<'gc>
impl<'gc> !Send for ConditionalTypeAnnotation<'gc>
impl<'gc> !Sync for ConditionalTypeAnnotation<'gc>
impl<'gc> !UnwindSafe for ConditionalTypeAnnotation<'gc>
impl<'gc> Unpin for ConditionalTypeAnnotation<'gc>
impl<'gc> UnsafeUnpin for ConditionalTypeAnnotation<'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