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

@@ -782,8 +782,10 @@ namespace decls_block {
DeclIDField, // context decl
AssociativityField,
BCFixed<8>, // precedence
BCFixed<1>, // assignment
BCFixed<1>, // IsAccocImplicit flag
BCFixed<1> // IsPrecedenceImplicit flag
BCFixed<1>, // IsPrecedenceImplicit flag
BCFixed<1> // IsAssignmentImplicit flag
>;
using EnumElementLayout = BCRecordLayout<