Files
swift-mirror/lib/IDE/PostfixCompletion.cpp
Hamish Knight 839e20b8ca [Completion] Assert we have a type in getClosureActorIsolation
Previously we could end up in cases where we pick the wrong
DeclContext in `TypeCheckASTNodeAtLocRequest` since we previously
weren't checking source ranges, which could result in skipping the
type-checking of an outer closure. Now that we correctly pick the
DeclContext, we should no longer hit that case, so we should be able
to fall into `getTypeForCompletion` and assert that the solution has
a type. Also while here let's upgrade that assert to a
`CONDITIONAL_ASSERT`.
2025-05-14 11:15:42 +01:00

16 KiB