mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rename Specifier::None to Specifier::Owned
This commit is contained in:
@@ -74,7 +74,7 @@ static void deriveRawValueInit(AbstractFunctionDecl *initDecl) {
|
||||
DeclNameLoc(), /*Implicit=*/true);
|
||||
|
||||
// rawValue param to init(rawValue:)
|
||||
auto *rawValueDecl = new (C) ParamDecl(VarDecl::Specifier::None, SourceLoc(),
|
||||
auto *rawValueDecl = new (C) ParamDecl(VarDecl::Specifier::Owned, SourceLoc(),
|
||||
SourceLoc(), C.Id_rawValue,
|
||||
SourceLoc(), C.Id_rawValue,
|
||||
valueParam->getType(), parentDC);
|
||||
@@ -124,7 +124,7 @@ static ValueDecl *deriveInitDecl(TypeChecker &tc, Decl *parentDecl,
|
||||
auto *parentDC = cast<DeclContext>(parentDecl);
|
||||
|
||||
// rawValue
|
||||
auto *rawDecl = new (C) ParamDecl(VarDecl::Specifier::None, SourceLoc(), SourceLoc(),
|
||||
auto *rawDecl = new (C) ParamDecl(VarDecl::Specifier::Owned, SourceLoc(), SourceLoc(),
|
||||
paramName, SourceLoc(), paramName,
|
||||
paramType, parentDC);
|
||||
rawDecl->setInterfaceType(paramType);
|
||||
|
||||
Reference in New Issue
Block a user