mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Implement parsing support for the accepted spelling of @backDeployed for SE-0376.
For source compatibility `@_backDeploy` continues to be accepted as a spelling. rdar://102792909
This commit is contained in:
@@ -466,13 +466,13 @@ swift::FragileFunctionKindRequest::evaluate(Evaluator &evaluator,
|
||||
/*allowUsableFromInline=*/true};
|
||||
}
|
||||
|
||||
if (AFD->getAttrs().hasAttribute<BackDeployAttr>()) {
|
||||
if (AFD->getAttrs().hasAttribute<BackDeployedAttr>()) {
|
||||
return {FragileFunctionKind::BackDeploy,
|
||||
/*allowUsableFromInline=*/true};
|
||||
}
|
||||
|
||||
// Property and subscript accessors inherit @_alwaysEmitIntoClient,
|
||||
// @_backDeploy, and @inlinable from their storage declarations.
|
||||
// @backDeployed, and @inlinable from their storage declarations.
|
||||
if (auto accessor = dyn_cast<AccessorDecl>(AFD)) {
|
||||
auto *storage = accessor->getStorage();
|
||||
if (storage->getAttrs().getAttribute<InlinableAttr>()) {
|
||||
@@ -483,7 +483,7 @@ swift::FragileFunctionKindRequest::evaluate(Evaluator &evaluator,
|
||||
return {FragileFunctionKind::AlwaysEmitIntoClient,
|
||||
/*allowUsableFromInline=*/true};
|
||||
}
|
||||
if (storage->getAttrs().hasAttribute<BackDeployAttr>()) {
|
||||
if (storage->getAttrs().hasAttribute<BackDeployedAttr>()) {
|
||||
return {FragileFunctionKind::BackDeploy,
|
||||
/*allowUsableFromInline=*/true};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user