#[repr(C)]pub struct TSPropertySignature<'gc> {
pub metadata: NodeMetadata<'gc>,
pub key: &'gc Node<'gc>,
pub type_annotation: Option<&'gc Node<'gc>>,
pub initializer: Option<&'gc Node<'gc>>,
pub optional: Cell<bool>,
pub computed: Cell<bool>,
pub readonly: Cell<bool>,
pub static: Cell<bool>,
pub export: Cell<bool>,
}Expand description
The TSPropertySignature AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
key: &'gc Node<'gc>ESTree key property.
type_annotation: Option<&'gc Node<'gc>>ESTree typeAnnotation property.
initializer: Option<&'gc Node<'gc>>ESTree initializer property.
optional: Cell<bool>ESTree optional property.
computed: Cell<bool>ESTree computed property.
readonly: Cell<bool>ESTree readonly property.
static: Cell<bool>ESTree static property.
export: Cell<bool>ESTree export property.
Implementations§
Source§impl<'gc> TSPropertySignature<'gc>
impl<'gc> TSPropertySignature<'gc>
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for TSPropertySignature<'gc>
impl<'gc> !RefUnwindSafe for TSPropertySignature<'gc>
impl<'gc> !Send for TSPropertySignature<'gc>
impl<'gc> !Sync for TSPropertySignature<'gc>
impl<'gc> !UnwindSafe for TSPropertySignature<'gc>
impl<'gc> Unpin for TSPropertySignature<'gc>
impl<'gc> UnsafeUnpin for TSPropertySignature<'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