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:
@@ -2737,11 +2737,11 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
|
||||
return;
|
||||
}
|
||||
|
||||
case DAK_BackDeploy: {
|
||||
auto *theAttr = cast<BackDeployAttr>(DA);
|
||||
case DAK_BackDeployed: {
|
||||
auto *theAttr = cast<BackDeployedAttr>(DA);
|
||||
ENCODE_VER_TUPLE(Version, llvm::Optional<llvm::VersionTuple>(theAttr->Version));
|
||||
auto abbrCode = S.DeclTypeAbbrCodes[BackDeployDeclAttrLayout::Code];
|
||||
BackDeployDeclAttrLayout::emitRecord(
|
||||
auto abbrCode = S.DeclTypeAbbrCodes[BackDeployedDeclAttrLayout::Code];
|
||||
BackDeployedDeclAttrLayout::emitRecord(
|
||||
S.Out, S.ScratchRecord, abbrCode,
|
||||
theAttr->isImplicit(),
|
||||
LIST_VER_TUPLE_PIECES(Version),
|
||||
|
||||
Reference in New Issue
Block a user