mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Comment parsing: for now, treat classes, protocols and structs as "class-like"
things Swift SVN r16453
This commit is contained in:
@@ -198,6 +198,9 @@ void CommentToXMLConverter::visitFullComment(const FullComment *FC) {
|
||||
if (isa<AbstractFunctionDecl>(D)) {
|
||||
OS << "<Function";
|
||||
RootEndTag = "</Function>";
|
||||
} else if (isa<StructDecl>(D) || isa<ClassDecl>(D) || isa<ProtocolDecl>(D)) {
|
||||
OS << "<Class";
|
||||
RootEndTag = "</Class>";
|
||||
} else {
|
||||
OS << "<Other";
|
||||
RootEndTag = "</Other>";
|
||||
|
||||
Reference in New Issue
Block a user