s/swift::lookupVisibleDecls/swift::lookupVisibleMemberDecls/g

There were two overloads of lookupVisibleDecls: one that performed
unqualified lookup from a particular decl context, the other performing
qualified lookup into a given type from a particular decl context.
They don't really behave the same, so let's give them different names.

Swift SVN r8641
This commit is contained in:
Jordan Rose
2013-09-25 20:08:09 +00:00
parent c5322d4bf6
commit 6e1ed42c07
3 changed files with 11 additions and 11 deletions

View File

@@ -976,7 +976,7 @@ public:
}
}
if (!Done) {
lookupVisibleDecls(*this, ExprType, CurrDeclContext);
lookupVisibleMemberDecls(*this, ExprType, CurrDeclContext);
}
{
// Add the special qualified keyword 'metatype' so that, for example,
@@ -1015,8 +1015,8 @@ public:
void getTypeCompletions(Type BaseType) {
Kind = LookupKind::Type;
NeedLeadingDot = !HaveDot;
lookupVisibleDecls(*this, MetaTypeType::get(BaseType, SwiftContext),
CurrDeclContext);
lookupVisibleMemberDecls(*this, MetaTypeType::get(BaseType, SwiftContext),
CurrDeclContext);
}
void getTypeCompletionsInDeclContext(SourceLoc Loc) {