Rename Specifier::None to Specifier::Owned

This commit is contained in:
Robert Widmann
2017-07-05 14:02:26 -07:00
parent e423d8c0b2
commit 4da853e7cb
16 changed files with 32 additions and 32 deletions

View File

@@ -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);