mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename Specifier::None to Specifier::Owned
This commit is contained in:
@@ -386,7 +386,7 @@ makeEnumRawValueConstructor(ClangImporter::Implementation &Impl,
|
||||
auto selfDecl = ParamDecl::createSelf(SourceLoc(), enumDecl,
|
||||
/*static*/false, /*inout*/true);
|
||||
|
||||
auto param = new (C) ParamDecl(VarDecl::Specifier::None, SourceLoc(),
|
||||
auto param = new (C) ParamDecl(VarDecl::Specifier::Owned, SourceLoc(),
|
||||
SourceLoc(), C.Id_rawValue,
|
||||
SourceLoc(), C.Id_rawValue,
|
||||
enumDecl->getRawType(),
|
||||
@@ -593,7 +593,7 @@ static FuncDecl *makeFieldSetterDecl(ClangImporter::Implementation &Impl,
|
||||
auto &C = Impl.SwiftContext;
|
||||
auto selfDecl = ParamDecl::createSelf(SourceLoc(), importedDecl,
|
||||
/*isStatic*/false, /*isInOut*/true);
|
||||
auto newValueDecl = new (C) ParamDecl(VarDecl::Specifier::None,
|
||||
auto newValueDecl = new (C) ParamDecl(VarDecl::Specifier::Owned,
|
||||
SourceLoc(), SourceLoc(),
|
||||
Identifier(), SourceLoc(), C.Id_value,
|
||||
importedFieldDecl->getType(),
|
||||
@@ -1128,7 +1128,7 @@ createValueConstructor(ClangImporter::Implementation &Impl,
|
||||
|
||||
Identifier argName = generateParamName ? var->getName() : Identifier();
|
||||
auto param = new (context)
|
||||
ParamDecl(VarDecl::Specifier::None, SourceLoc(), SourceLoc(), argName,
|
||||
ParamDecl(VarDecl::Specifier::Owned, SourceLoc(), SourceLoc(), argName,
|
||||
SourceLoc(), var->getName(), var->getType(), structDecl);
|
||||
param->setInterfaceType(var->getInterfaceType());
|
||||
valueParameters.push_back(param);
|
||||
|
||||
Reference in New Issue
Block a user