func view_shape(view: &DeclView) -> DeclShapeReturns the declaration category recognized by view_decl.
View Source
pub func view_shape(view: &DeclView) -> DeclShape {
match view.shape {
.func_shape -> .func_shape,
.init_shape -> .init_shape,
.struct_shape -> .struct_shape,
.enum_shape -> .enum_shape,
.protocol_shape -> .protocol_shape,
.extend_shape -> .extend_shape,
.let_shape -> .let_shape,
.property_shape -> .property_shape,
.variant_shape -> .variant_shape,
.typealias_shape -> .typealias_shape,
.effect_shape -> .effect_shape,
.import_shape -> .import_shape,
.signature_shape -> .signature_shape,
.associated_shape -> .associated_shape,
.other_shape -> .other_shape
}
}