mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
TextualInterface: print __conuming before accessors
rdar://80535144
This commit is contained in:
@@ -3428,7 +3428,9 @@ void PrintAST::visitAccessorDecl(AccessorDecl *decl) {
|
||||
printAttributes(decl);
|
||||
// Explicitly print 'mutating' and 'nonmutating' if needed.
|
||||
printMutabilityModifiersIfNeeded(decl);
|
||||
|
||||
if (decl->isConsuming()) {
|
||||
Printer.printKeyword("__consuming", Options, " ");
|
||||
}
|
||||
switch (auto kind = decl->getAccessorKind()) {
|
||||
case AccessorKind::Get:
|
||||
case AccessorKind::Address:
|
||||
|
||||
Reference in New Issue
Block a user