[CodeCompletion] Don’t pass LeaveClosureBodiesUnchecked for solver-based code completion

This commit is contained in:
Alex Hoppen
2022-09-07 12:56:04 +02:00
parent 26e237c4ae
commit 20985eaecd
5 changed files with 20 additions and 9 deletions

View File

@@ -16,10 +16,20 @@ func sink(receiveValue: (MyArray) -> Void) {
func foo() {
sink { items in
let a = items.#^COMPLETE_WITHOUT_SPACE?check=CHECK^#map{ $0.content }
}
sink { items in
let b = items.#^COMPLETE_WITH_SPACE?check=CHECK^# map{ $0.content }
}
sink { items in
let c = items.#^COMPLETE_WITH_SPACE_AND_PARENS?check=CHECK^# map({ $0.content })
}
sink { items in
let d = items.#^COMPLETE_WITHOUT_SPACE_BUT_PARENS?check=CHECK^#map({ $0.content })
}
sink { items in
let e = items.#^COMPLETE_WITHOUT_MAP?check=CHECK^# { $0.content }
}
sink { items in
let f = items.#^COMPLETE_WITHOUT_MAP_BUT_PARENS?check=CHECK^# ({ $0.content })
}
}