Thread operator lookup through Module to ModuleLoader...

...even though Swift modules don't provide this lookup yet, and Clang
modules never will.

Swift SVN r5173
This commit is contained in:
Jordan Rose
2013-05-16 00:23:10 +00:00
parent 803aa24b3e
commit ec1e47cbf0
4 changed files with 65 additions and 2 deletions

View File

@@ -82,6 +82,15 @@ public:
/// \param result Will be populated with the results of name lookup.
virtual void lookupMembers(Module *module, Type base, Identifier name,
SmallVectorImpl<ValueDecl*> &result) { }
/// \brief Look for a declaration of the given operator.
///
/// \returns The operator decl, or null if this module does not define the
/// operator in question.
virtual OperatorDecl *lookupOperator(Module *module, Identifier name,
DeclKind fixity) {
return nullptr;
}
};
}