Operator lookups may be private (non-cascading) dependencies.

This helps reduce the impact when touching a file that, say,
defines a custom ==.

Swift SVN r23718
This commit is contained in:
Jordan Rose
2014-12-05 02:24:35 +00:00
parent a4318845cc
commit 9abf77d59a
5 changed files with 33 additions and 14 deletions

View File

@@ -839,11 +839,14 @@ public:
///
/// The file must be name-bound already. If the operator is not found, or if
/// there is an ambiguity, returns null.
InfixOperatorDecl *lookupInfixOperator(Identifier name,
///
/// \param isNonPrivate If true, the lookup of this operator may affect
/// downstream files.
InfixOperatorDecl *lookupInfixOperator(Identifier name, bool isNonPrivate,
SourceLoc diagLoc = {});
PrefixOperatorDecl *lookupPrefixOperator(Identifier name,
PrefixOperatorDecl *lookupPrefixOperator(Identifier name, bool isNonPrivate,
SourceLoc diagLoc = {});
PostfixOperatorDecl *lookupPostfixOperator(Identifier name,
PostfixOperatorDecl *lookupPostfixOperator(Identifier name, bool isNonPrivate,
SourceLoc diagLoc = {});
/// @}