pub type ClassFunction = FunctionBase<ClassFunctionBase>;
Aliased Type§
pub struct ClassFunction {
pub header: MethodHeader,
pub name: WithComment<PropertyKey<PublicOrPrivate>>,
pub type_parameters: Option<Vec<TypeParameter>>,
pub parameters: FunctionParameters<(Option<ThisParameter>, Option<SuperParameter>), ()>,
pub return_type: Option<TypeAnnotation>,
pub body: FunctionBody,
pub position: BaseSpan<()>,
}
Fields§
§header: MethodHeader
§name: WithComment<PropertyKey<PublicOrPrivate>>
§type_parameters: Option<Vec<TypeParameter>>
§parameters: FunctionParameters<(Option<ThisParameter>, Option<SuperParameter>), ()>
§return_type: Option<TypeAnnotation>
§body: FunctionBody
§position: BaseSpan<()>