for (int i = 0, n = moduleInfo.getNTypeClasses(); i < n; i++) {
final TypeClass typeClass = moduleInfo.getNthTypeClass(i);
caldocComments.put("class " + typeClass.getName().getQualifiedName(), typeClass.getCALDocComment());
for (int j = 0, m = typeClass.getNClassMethods(); j < m; j++) {
final ClassMethod method = typeClass.getNthClassMethod(j);
caldocComments.put("class method " + method.getName().getQualifiedName(), method.getCALDocComment());
}
}
for (int i = 0, n = moduleInfo.getNClassInstances(); i < n; i++) {
final ClassInstance instance = moduleInfo.getNthClassInstance(i);
final TypeClass typeClass = instance.getTypeClass();
caldocComments.put("instance " + instance.getNameWithContext(), instance.getCALDocComment());
for (int j = 0, m = typeClass.getNClassMethods(); j < m; j++) {
final ClassMethod method = typeClass.getNthClassMethod(j);
caldocComments.put(
"instance method " + instance.getNameWithContext() + " " + method.getName().getQualifiedName(),
method.getCALDocComment());
}
}
// Then visit each comment verifying the validity of unchecked references