#[repr(C)]pub struct MethodDefinition<'gc> {
pub metadata: NodeMetadata<'gc>,
pub key: &'gc Node<'gc>,
pub value: &'gc Node<'gc>,
pub kind: Cell<NodeLabel>,
pub computed: Cell<bool>,
pub static: Cell<bool>,
pub decorators: NodeList<'gc>,
}Expand description
The MethodDefinition 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.
static: Cell<bool>ESTree static property.
decorators: NodeList<'gc>ESTree decorators property.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for MethodDefinition<'gc>
impl<'gc> !RefUnwindSafe for MethodDefinition<'gc>
impl<'gc> !Send for MethodDefinition<'gc>
impl<'gc> !Sync for MethodDefinition<'gc>
impl<'gc> !UnwindSafe for MethodDefinition<'gc>
impl<'gc> Unpin for MethodDefinition<'gc>
impl<'gc> UnsafeUnpin for MethodDefinition<'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