AST: Stop passing around a LazyResolver in name lookup

Note that in all cases it was either nullptr or ctx.getLazyResolver().
While passing in nullptr might appear at first glance to mean something
("don't type check anything"), in practice we would check for a nullptr
value and pull out ctx.getLazyResolver() instead. Furthermore, with
the lazy resolver going away (at least for resolveDeclSignature() calls),
it won't make sense to do that anymore anyway.
This commit is contained in:
Slava Pestov
2019-08-19 15:03:39 -04:00
parent 94c5a35bf2
commit 80ccbe5116
24 changed files with 120 additions and 187 deletions

View File

@@ -164,7 +164,6 @@ void ConformingMethodListCallbacks::getMatchingMethods(
} LocalConsumer(CurDeclContext, T, expectedTypes, result);
lookupVisibleMemberDecls(LocalConsumer, MetatypeType::get(T), CurDeclContext,
CurDeclContext->getASTContext().getLazyResolver(),
/*includeInstanceMembers=*/false);
}