Print precedence and associativity of infix operator decls

To answer "did the user specify this, or is it implicit", stick a couple
of is-implicit bits in InfixOperatorDecl, and thread them through
serializaton/deserialization.

Swift SVN r20067
This commit is contained in:
Ben Langmuir
2014-07-17 03:20:01 +00:00
parent f86a5bfe1d
commit 073d3a441c
8 changed files with 65 additions and 9 deletions

View File

@@ -1472,7 +1472,9 @@ void Serializer::writeDecl(const Decl *D) {
addIdentifierRef(op->getName()),
addDeclRef(DC),
associativity,
op->getPrecedence());
op->getPrecedence(),
op->isAssociativityImplicit(),
op->isPrecedenceImplicit());
break;
}