mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
rename the inout decl attribute (not the type attribute) to @mutating.
Swift SVN r11416
This commit is contained in:
@@ -1503,7 +1503,7 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext,
|
||||
bool hasSelectorStyleSignature;
|
||||
bool isClassMethod;
|
||||
bool isAssignmentOrConversion;
|
||||
bool isObjC, isIBAction, isTransparent, isInOut, isOptional;
|
||||
bool isObjC, isIBAction, isTransparent, isMutating, isOptional;
|
||||
unsigned numParamPatterns;
|
||||
TypeID signatureID;
|
||||
TypeID interfaceTypeID;
|
||||
@@ -1514,7 +1514,7 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext,
|
||||
hasSelectorStyleSignature,
|
||||
isClassMethod, isAssignmentOrConversion,
|
||||
isObjC, isIBAction, isTransparent,
|
||||
isInOut, isOptional,
|
||||
isMutating, isOptional,
|
||||
numParamPatterns, signatureID,
|
||||
interfaceTypeID, associatedDeclID,
|
||||
overriddenID);
|
||||
@@ -1584,8 +1584,8 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext,
|
||||
fn->getMutableAttrs().setAttr(AK_IBAction, SourceLoc());
|
||||
if (isTransparent)
|
||||
fn->getMutableAttrs().setAttr(AK_transparent, SourceLoc());
|
||||
if (isInOut)
|
||||
fn->getMutableAttrs().setAttr(AK_inout, SourceLoc());
|
||||
if (isMutating)
|
||||
fn->getMutableAttrs().setAttr(AK_mutating, SourceLoc());
|
||||
if (isOptional)
|
||||
fn->getMutableAttrs().setAttr(AK_optional, SourceLoc());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user