Struct swc_ecma_ast::Class [−][src]
pub struct Class {
pub span: Span,
pub decorators: Vec<Decorator>,
pub body: Vec<ClassMember>,
pub super_class: Option<Box<Expr>>,
pub is_abstract: bool,
pub type_params: Option<TsTypeParamDecl>,
pub super_type_params: Option<TsTypeParamInstantiation>,
pub implements: Vec<TsExprWithTypeArgs>,
}
Fields
span: Span
decorators: Vec<Decorator>
body: Vec<ClassMember>
super_class: Option<Box<Expr>>
is_abstract: bool
type_params: Option<TsTypeParamDecl>
super_type_params: Option<TsTypeParamInstantiation>
implements: Vec<TsExprWithTypeArgs>
Typescript extension.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Class
impl UnwindSafe for Class
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more