Skip to content

Commit 5eb479a

Browse files
committed
Refactor: extractCommentParts can theoretically work for any markup AST node
1 parent f723b86 commit 5eb479a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/AST/DocComment.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,15 @@ bool extractSimpleField(
276276

277277
static DocComment::CommentParts
278278
extractCommentParts(llvm::markup::MarkupContext &MC,
279-
llvm::markup::Document *Doc) {
279+
llvm::markup::MarkupASTNode *Node) {
280280

281281
DocComment::CommentParts Parts;
282-
auto Children = Doc->getChildren();
282+
auto Children = Node->getChildren();
283283
if (Children.empty())
284284
return Parts;
285285

286286
auto FirstParagraph
287-
= dyn_cast<llvm::markup::Paragraph>(Doc->getChildren().front());
287+
= dyn_cast<llvm::markup::Paragraph>(Node->getChildren().front());
288288
if (FirstParagraph)
289289
Parts.Brief = FirstParagraph;
290290

0 commit comments

Comments
 (0)