mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Update master to build with Xcode 11 beta, macOS 10.15, iOS 13, tvOS 13, and watchOS 6 SDKs
This commit is contained in:
@@ -1274,9 +1274,10 @@ public:
|
||||
}
|
||||
|
||||
StringRef getObjCSelectorName(const Decl *D, SmallString<64> &Buf) {
|
||||
// We only vend the selector name for @IBAction methods.
|
||||
// We only vend the selector name for @IBAction and @IBSegueAction methods.
|
||||
if (auto FuncD = dyn_cast_or_null<FuncDecl>(D)) {
|
||||
if (FuncD->getAttrs().hasAttribute<IBActionAttr>())
|
||||
if (FuncD->getAttrs().hasAttribute<IBActionAttr>() ||
|
||||
FuncD->getAttrs().hasAttribute<IBSegueActionAttr>())
|
||||
return FuncD->getObjCSelector().getString(Buf);
|
||||
}
|
||||
return StringRef();
|
||||
|
||||
Reference in New Issue
Block a user