Sema: Bring back 'assignment' as an infix operator modifier.

We need it to decide whether to admit infix operators into an optional chain, such as 'x? = 0' or 'x?.y += 2'.

Swift SVN r20295
This commit is contained in:
Joe Groff
2014-07-22 05:16:01 +00:00
parent 710b35b396
commit 7feeecfd21
12 changed files with 102 additions and 21 deletions

View File

@@ -1501,8 +1501,10 @@ void Serializer::writeDecl(const Decl *D) {
addDeclRef(DC),
associativity,
op->getPrecedence(),
op->isAssignment(),
op->isAssociativityImplicit(),
op->isPrecedenceImplicit());
op->isPrecedenceImplicit(),
op->isAssignmentImplicit());
break;
}