#[repr(C)]pub struct ObjectTypeMappedTypeProperty<'gc> {
pub metadata: NodeMetadata<'gc>,
pub key_tparam: &'gc Node<'gc>,
pub prop_type: &'gc Node<'gc>,
pub source_type: &'gc Node<'gc>,
pub variance: Option<&'gc Node<'gc>>,
pub optional: Cell<NodeString>,
}Expand description
The ObjectTypeMappedTypeProperty AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
key_tparam: &'gc Node<'gc>ESTree keyTparam property.
prop_type: &'gc Node<'gc>ESTree propType property.
source_type: &'gc Node<'gc>ESTree sourceType property.
variance: Option<&'gc Node<'gc>>ESTree variance property.
optional: Cell<NodeString>ESTree optional property.
Implementations§
Source§impl<'gc> ObjectTypeMappedTypeProperty<'gc>
impl<'gc> ObjectTypeMappedTypeProperty<'gc>
Sourcepub fn new(
metadata: NodeMetadata<'gc>,
key_tparam: &'gc Node<'gc>,
prop_type: &'gc Node<'gc>,
source_type: &'gc Node<'gc>,
variance: Option<&'gc Node<'gc>>,
optional: NodeString,
) -> Self
pub fn new( metadata: NodeMetadata<'gc>, key_tparam: &'gc Node<'gc>, prop_type: &'gc Node<'gc>, source_type: &'gc Node<'gc>, variance: Option<&'gc Node<'gc>>, optional: NodeString, ) -> Self
Build ObjectTypeMappedTypeProperty from its metadata and ESTree.def
fields.
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for ObjectTypeMappedTypeProperty<'gc>
impl<'gc> !RefUnwindSafe for ObjectTypeMappedTypeProperty<'gc>
impl<'gc> !Send for ObjectTypeMappedTypeProperty<'gc>
impl<'gc> !Sync for ObjectTypeMappedTypeProperty<'gc>
impl<'gc> !UnwindSafe for ObjectTypeMappedTypeProperty<'gc>
impl<'gc> Unpin for ObjectTypeMappedTypeProperty<'gc>
impl<'gc> UnsafeUnpin for ObjectTypeMappedTypeProperty<'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