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