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