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

@@ -400,7 +400,7 @@ void Module::lookupValue(AccessPathTy AccessPath, DeclName Name,
}
void Module::lookupMember(SmallVectorImpl<ValueDecl*> &results,
const DeclContext *DC, DeclName name,
const DeclContext *container, DeclName name,
Identifier privateDiscriminator,
bool lookIntoExtensions) const {
switch (DC->getContextKind()) {
@@ -417,7 +417,7 @@ void Module::lookupMember(SmallVectorImpl<ValueDecl*> &results,
llvm_unreachable("Use ExtensionDecl::lookupDirect instead.");
case DeclContextKind::Module: {
assert(DC == this);
assert(container == this);
size_t oldSize = results.size();
this->lookupValue({}, name, NLKind::QualifiedLookup, results);