Skip to content

Commit b662c3a

Browse files
committed
Print @_implements to AST printer.
1 parent 7af4539 commit b662c3a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/AST/Attr.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,15 @@ bool DeclAttribute::printImpl(ASTPrinter &Printer, const PrintOptions &Options,
484484
break;
485485
}
486486

487+
case DAK_Implements: {
488+
Printer.printAttrName("@_implements");
489+
Printer << "(";
490+
auto *attr = cast<ImplementsAttr>(this);
491+
attr->getProtocolType().getType().print(Printer, Options);
492+
Printer << ", " << attr->getMemberName() << ")";
493+
break;
494+
}
495+
487496
case DAK_Count:
488497
llvm_unreachable("exceed declaration attribute kinds");
489498

0 commit comments

Comments
 (0)