================ @@ -210,12 +229,17 @@ serializeCommonAttributes(const Info &I, json::Object &Obj, } if (!I.Description.empty()) { - json::Value DescArray = json::Array(); - auto &DescArrayRef = *DescArray.getAsArray(); - DescArrayRef.reserve(I.Description.size()); - for (const auto &Comment : I.Description) - DescArrayRef.push_back(serializeComment(Comment)); - Obj["Description"] = DescArray; + Object Description = Object(); + // Skip straight to the FullComment's children + auto &Comments = I.Description.at(0).Children; + for (const auto &CommentInfo : Comments) { + json::Value Comment = serializeComment(*CommentInfo, Description); + // Paragraph comments might not be children + if (auto *ParagraphComment = + Comment.getAsObject()->get("ParagraphComment")) + insertComment(Description, *ParagraphComment, "ParagraphComments"); ---------------- ilovepi wrote:
yeah, rewording would be helpful. thanks https://github.com/llvm/llvm-project/pull/149564 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits