visitClassElement method
Visits a class element and extracts its documentation.
Implementation
@override
void visitClassElement(ClassElement2 element) {
components.add(DocComponent(
name: element.name3!,
filePath: filePath,
isNullSafe: true,
description: _getDescription(element),
constructors: _mapConstructors(element.constructors2),
properties: _mapProperties(_collectFieldsWithInheritance(element)),
methods: _mapMethods(_collectMethodsWithInheritance(element)),
type: DocComponentType.classType,
annotations: _getAnnotations(element),
superClass: (element.supertype != null && !element.supertype!.isDartCoreObject)
? element.supertype!.element3.name3
: null,
interfaces: element.interfaces.map((e) => e.element3.name3!).toList(),
mixins: element.mixins.map((e) => e.element3.name3!).toList(),
));
super.visitClassElement(element);
}