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