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

@@ -495,7 +495,7 @@ static CallExpr *createContainerKeyedByCall(ASTContext &C, DeclContext *DC,
Expr *base, Type returnType,
NominalTypeDecl *param) {
// (keyedBy:)
auto *keyedByDecl = new (C) ParamDecl(VarDecl::Specifier::None, SourceLoc(),
auto *keyedByDecl = new (C) ParamDecl(VarDecl::Specifier::Owned, SourceLoc(),
SourceLoc(), C.Id_keyedBy, SourceLoc(),
C.Id_keyedBy, returnType, DC);
keyedByDecl->setImplicit();
@@ -737,7 +737,7 @@ static FuncDecl *deriveEncodable_encode(TypeChecker &tc, Decl *parentDecl,
// Params: (self [implicit], Encoder)
auto *selfDecl = ParamDecl::createSelf(SourceLoc(), target);
auto *encoderParam = new (C) ParamDecl(VarDecl::Specifier::None, SourceLoc(),
auto *encoderParam = new (C) ParamDecl(VarDecl::Specifier::Owned, SourceLoc(),
SourceLoc(), C.Id_to, SourceLoc(),
C.Id_encoder, encoderType, target);
encoderParam->setInterfaceType(encoderType);
@@ -1038,7 +1038,7 @@ static ValueDecl *deriveDecodable_init(TypeChecker &tc, Decl *parentDecl,
auto *selfDecl = ParamDecl::createSelf(SourceLoc(), target,
/*isStatic=*/false,
/*isInOut=*/inOut);
auto *decoderParamDecl = new (C) ParamDecl(VarDecl::Specifier::None,
auto *decoderParamDecl = new (C) ParamDecl(VarDecl::Specifier::Owned,
SourceLoc(),
SourceLoc(), C.Id_from,
SourceLoc(), C.Id_decoder,