visitClassElement method
Visits a class element and extracts its documentation.
Implementation
@override
void visitClassElement(ClassElement2 element) {
final superTypeInfo = _getSuperTypeInfo(element);
components.add(DocComponent(
name: element.name3!,
filePath: filePath,
entryPoint: entryPoint,
description: _getDescription(element),
constructors: _mapConstructors(element.constructors2),
properties: _mapProperties(_collectFieldsWithInheritance(element)),
methods: _mapMethods(_collectMethodsWithInheritance(element)),
type: DocComponentType.classType,
annotations: _getAnnotations(element),
superClasses: superTypeInfo.superClasses,
superClassPackages: superTypeInfo.superClassPackages,
interfaces: element.interfaces.map((e) => e.element3.name3!).toList(),
mixins: element.mixins.map((e) => e.element3.name3!).toList(),
typeParameters: _getTypeParameters(element.typeParameters2),
));
super.visitClassElement(element);
}