pub type ObjectLiteralMethod = FunctionBase<ObjectLiteralMethodBase>;
Aliased Type§
pub struct ObjectLiteralMethod {
pub header: MethodHeader,
pub name: WithComment<PropertyKey<AlwaysPublic>>,
pub type_parameters: Option<Vec<TypeParameter>>,
pub parameters: FunctionParameters<Option<ThisParameter>, ()>,
pub return_type: Option<TypeAnnotation>,
pub body: Block,
pub position: BaseSpan<()>,
}
Fields§
§header: MethodHeader
§name: WithComment<PropertyKey<AlwaysPublic>>
§type_parameters: Option<Vec<TypeParameter>>
§parameters: FunctionParameters<Option<ThisParameter>, ()>
§return_type: Option<TypeAnnotation>
§body: Block
§position: BaseSpan<()>