[IDE] Don't set LeaveClosureBodiesUnchecked for solver-based cursor info

This commit is contained in:
Alex Hoppen
2023-02-17 14:23:52 +01:00
parent f129c55adc
commit 47607f630c
3 changed files with 20 additions and 10 deletions

View File

@@ -34,6 +34,9 @@ namespace {
// MARK: - Utilities
void typeCheckDeclAndParentClosures(ValueDecl *VD) {
if (!VD) {
return;
}
// We need to type check any parent closures because their types are
// encoded in the USR of ParentContexts in the cursor info response.
auto DC = VD->getDeclContext();