File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -396,31 +396,6 @@ class VectorDeclConsumer : public VisibleDeclConsumer {
396
396
}
397
397
};
398
398
399
- // / A consumer that inserts found decls with a matching name into an
400
- // / externally-owned SmallVector.
401
- class NamedDeclConsumer : public VisibleDeclConsumer {
402
- virtual void anchor () override ;
403
- public:
404
- DeclNameRef name;
405
- SmallVectorImpl<LookupResultEntry> &results;
406
- bool isTypeLookup;
407
-
408
- NamedDeclConsumer (DeclNameRef name,
409
- SmallVectorImpl<LookupResultEntry> &results,
410
- bool isTypeLookup)
411
- : name(name), results(results), isTypeLookup(isTypeLookup) {}
412
-
413
- virtual void foundDecl (ValueDecl *VD, DeclVisibilityKind Reason,
414
- DynamicLookupInfo dynamicLookupInfo = {}) override {
415
- // Give clients an opportunity to filter out non-type declarations early,
416
- // to avoid circular validation.
417
- if (isTypeLookup && !isa<TypeDecl>(VD))
418
- return ;
419
- if (VD->getName ().matchesRef (name.getFullName ()))
420
- results.push_back (LookupResultEntry (VD));
421
- }
422
- };
423
-
424
399
// / A consumer that filters out decls that are not accessible from a given
425
400
// / DeclContext.
426
401
class AccessFilteringDeclConsumer final : public VisibleDeclConsumer {
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ using namespace swift::namelookup;
44
44
45
45
void VisibleDeclConsumer::anchor () {}
46
46
void VectorDeclConsumer::anchor () {}
47
- void NamedDeclConsumer::anchor () {}
48
47
49
48
ValueDecl *LookupResultEntry::getBaseDecl () const {
50
49
if (BaseDC == nullptr )
You can’t perform that action at this time.
0 commit comments