mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user