mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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>";
|
||||
|
||||
@@ -19,6 +19,11 @@ SWIFT_CLASS("_TtC8comments21A010_AttachToEntities")
|
||||
@end
|
||||
|
||||
|
||||
SWIFT_PROTOCOL("_TtP8comments21A013_AttachToEntities_")
|
||||
@protocol A013_AttachToEntities
|
||||
@end
|
||||
|
||||
|
||||
SWIFT_CLASS("_TtC8comments18A100_EmptyComments")
|
||||
@interface A100_EmptyComments
|
||||
|
||||
|
||||
Reference in New Issue
Block a user