final Map<String, CALDocComment> caldocComments = new LinkedHashMap<String, CALDocComment>();
caldocComments.put("module " + moduleName, moduleInfo.getCALDocComment());
for (int i = 0, n = moduleInfo.getNFunctions(); i < n; i++) {
final Function function = moduleInfo.getNthFunction(i);
caldocComments.put("function " + function.getName().getQualifiedName(), function.getCALDocComment());
}
for (int i = 0, n = moduleInfo.getNTypeConstructors(); i < n; i++) {
final TypeConstructor typeCons = moduleInfo.getNthTypeConstructor(i);
caldocComments.put("type cons " + typeCons.getName().getQualifiedName(), typeCons.getCALDocComment());