mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Remove LookupResult::Entry in favor of AST's LookupResultEntry
Both types store a base declaration and a result declaration; we can remove one. Soon, it will change to store a base declaration context, instead.
This commit is contained in:
@@ -249,7 +249,9 @@ LookupResult &ConstraintSystem::lookupMember(Type base, DeclName name) {
|
||||
|
||||
// We are performing dynamic lookup. Filter out redundant results early.
|
||||
llvm::DenseSet<std::tuple<char, ObjCSelector, CanType>> known;
|
||||
result->filter([&](ValueDecl *decl) -> bool {
|
||||
result->filter([&](LookupResultEntry entry) -> bool {
|
||||
auto *decl = entry.getValueDecl();
|
||||
|
||||
if (decl->isInvalid())
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user