mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -884,9 +884,9 @@ public:
|
||||
Optional<llvm::VersionTuple> getIntroducedOSVersion(PlatformKind Kind) const;
|
||||
|
||||
/// Returns the OS version in which the decl became ABI as specified by the
|
||||
/// @_backDeploy attribute.
|
||||
/// @backDeployed attribute.
|
||||
Optional<llvm::VersionTuple>
|
||||
getBackDeployBeforeOSVersion(ASTContext &Ctx) const;
|
||||
getBackDeployedBeforeOSVersion(ASTContext &Ctx) const;
|
||||
|
||||
/// Returns the starting location of the entire declaration.
|
||||
SourceLoc getStartLoc() const { return getSourceRange().Start; }
|
||||
@@ -6808,8 +6808,8 @@ public:
|
||||
/// \return the synthesized thunk, or null if the base of the call has
|
||||
/// diagnosed errors during type checking.
|
||||
FuncDecl *getDistributedThunk() const;
|
||||
|
||||
/// Returns 'true' if the function has (or inherits) the @c @_backDeploy
|
||||
|
||||
/// Returns 'true' if the function has (or inherits) the `@backDeployed`
|
||||
/// attribute.
|
||||
bool isBackDeployed() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user