@@ -157,14 +157,14 @@ Paragraph *Paragraph::create(MarkupContext &MC,
157157 return new (Mem) Paragraph (Children);
158158}
159159
160- Attribute::Attribute (StringRef Attributes, ArrayRef<MarkupASTNode *> Children) : InlineContent(ASTNodeKind::Attribute ), NumChildren(Children.size()), Attributes(Attributes) {
160+ InlineAttributes::InlineAttributes (StringRef Attributes, ArrayRef<MarkupASTNode *> Children) : InlineContent(ASTNodeKind::InlineAttributes ), NumChildren(Children.size()), Attributes(Attributes) {
161161 std::uninitialized_copy (Children.begin (), Children.end (), getTrailingObjects<MarkupASTNode *>());
162162}
163163
164- Attribute * Attribute ::create (MarkupContext &MC, StringRef Attributes, ArrayRef<MarkupASTNode *> Children) {
165- void *Mem = MC.allocate (totalSizeToAlloc<MarkupASTNode *>(Children.size ()), alignof (Attribute ));
164+ InlineAttributes * InlineAttributes ::create (MarkupContext &MC, StringRef Attributes, ArrayRef<MarkupASTNode *> Children) {
165+ void *Mem = MC.allocate (totalSizeToAlloc<MarkupASTNode *>(Children.size ()), alignof (InlineAttributes ));
166166 StringRef AttrsCopy = MC.allocateCopy (Attributes);
167- return new (Mem) Attribute (AttrsCopy, Children);
167+ return new (Mem) InlineAttributes (AttrsCopy, Children);
168168}
169169
170170HRule *HRule::create (MarkupContext &MC) {
@@ -418,8 +418,8 @@ void swift::markup::dump(const MarkupASTNode *Node, llvm::raw_ostream &OS,
418418 dumpChildren (Node->getChildren (), OS, indent + 1 );
419419 break ;
420420 }
421- case swift::markup::ASTNodeKind::Attribute : {
422- auto A = cast<Attribute >(Node);
421+ case swift::markup::ASTNodeKind::InlineAttributes : {
422+ auto A = cast<InlineAttributes >(Node);
423423 OS << " Attribute:" ;
424424 OS << " Attributes=" << A->getAttributes ();
425425 OS << " Children=" << Node->getChildren ().size ();
0 commit comments