mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
review: rename Attribute to InlineAttributes in MarkupXML
This commit is contained in:
@@ -959,7 +959,7 @@
|
||||
<param name="pattern">.*\S.*</param>
|
||||
</data>
|
||||
</element>
|
||||
<element name="Attribute">
|
||||
<element name="InlineAttributes">
|
||||
<attribute name="attributes"/>
|
||||
<!-- Non-empty text content. -->
|
||||
<data type="string">
|
||||
|
||||
@@ -73,7 +73,7 @@ struct CommentToXMLConverter {
|
||||
}
|
||||
|
||||
void printInlineAttributes(const InlineAttributes *A) {
|
||||
OS << "<Attribute attributes=\"";
|
||||
OS << "<InlineAttributes attributes=\"";
|
||||
appendWithXMLEscaping(OS, A->getAttributes());
|
||||
OS << "\">";
|
||||
|
||||
@@ -81,7 +81,7 @@ struct CommentToXMLConverter {
|
||||
printASTNode(N);
|
||||
}
|
||||
|
||||
OS << "</Attribute>";
|
||||
OS << "</InlineAttributes>";
|
||||
}
|
||||
|
||||
void printBlockQuote(const BlockQuote *BQ) {
|
||||
|
||||
@@ -68,7 +68,7 @@ public enum A012_AttachToEntities {
|
||||
///
|
||||
/// ^[Attribute text](string: "attributed")
|
||||
@objc public func f0() {}
|
||||
// CHECK: {{.*}}DocCommentAsXML=[<Function file="{{.*}}" line="{{.*}}" column="{{.*}}"><Name>f0()</Name><USR>c:@M@comment_to_xml@objc(cs)Attributes(im)f0</USR><Declaration>@objc public func f0()</Declaration><CommentParts><Abstract><Para>Here is an attribute:</Para></Abstract><Discussion><Para><Attribute attributes="string: "attributed"">Attribute text</Attribute></Para></Discussion></CommentParts></Function>]
|
||||
// CHECK: {{.*}}DocCommentAsXML=[<Function file="{{.*}}" line="{{.*}}" column="{{.*}}"><Name>f0()</Name><USR>c:@M@comment_to_xml@objc(cs)Attributes(im)f0</USR><Declaration>@objc public func f0()</Declaration><CommentParts><Abstract><Para>Here is an attribute:</Para></Abstract><Discussion><Para><InlineAttributes attributes="string: "attributed"">Attribute text</InlineAttributes></Para></Discussion></CommentParts></Function>]
|
||||
}
|
||||
|
||||
@objc public class AutomaticLink {
|
||||
|
||||
Reference in New Issue
Block a user