mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Explicitly track things marked __owned.
This commit is contained in:
@@ -386,6 +386,7 @@ private:
|
||||
case Node::Kind::Number:
|
||||
case Node::Kind::ObjCAttribute:
|
||||
case Node::Kind::ObjCBlock:
|
||||
case Node::Kind::Owned:
|
||||
case Node::Kind::OwningAddressor:
|
||||
case Node::Kind::OwningMutableAddressor:
|
||||
case Node::Kind::PartialApplyForwarder:
|
||||
@@ -1128,6 +1129,10 @@ NodePointer NodePrinter::print(NodePointer Node, bool asPrefixContext) {
|
||||
Printer << "__shared ";
|
||||
print(Node->getChild(0));
|
||||
return nullptr;
|
||||
case Node::Kind::Owned:
|
||||
Printer << "__owned ";
|
||||
print(Node->getChild(0));
|
||||
return nullptr;
|
||||
case Node::Kind::NonObjCAttribute:
|
||||
Printer << "@nonobjc ";
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user