s/DC/container/ in Module::lookupMember, for clarification.

This is the container of the member, not the context from which lookup is
being performed.

No functionality change.

Swift SVN r21784
This commit is contained in:
Jordan Rose
2014-09-08 20:37:40 +00:00
parent ed5af5d484
commit f4daadc2e6
2 changed files with 9 additions and 5 deletions

View File

@@ -307,12 +307,16 @@ public:
LookupConformanceResult
lookupConformance(Type type, ProtocolDecl *protocol, LazyResolver *resolver);
/// Find a member named \p name in \p DC that was declared in this module.
/// Find a member named \p name in \p container that was declared in this
/// module.
///
/// \p container may be \c this for a top-level lookup.
///
/// If \p privateDiscriminator is non-empty, only matching private decls are
/// returned; otherwise, only non-private decls are returned.
void lookupMember(SmallVectorImpl<ValueDecl*> &results, const DeclContext *DC,
DeclName name, Identifier privateDiscriminator,
void lookupMember(SmallVectorImpl<ValueDecl*> &results,
const DeclContext *container, DeclName name,
Identifier privateDiscriminator,
bool lookIntoExtensions = true) const;
/// \sa getImportedModules