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