visitEnumElement method
Visits an enum element and extracts its documentation.
Implementation
@override
void visitEnumElement(EnumElement2 element) {
components.add(DocComponent(
name: element.name3!,
filePath: filePath,
isNullSafe: true,
description: _getDescription(element),
constructors: _mapConstructors(element.constructors2),
properties: _mapProperties(element.fields2),
methods: _mapMethods(element.methods2),
type: DocComponentType.enumType,
annotations: _getAnnotations(element),
));
super.visitEnumElement(element);
}