mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Sema] Remove separate closure type-checking logic
`participatesInInference` is now always true for a non-empty body, remove it along with the separate type-checking logic such that empty bodies are type-checked together with the context.
This commit is contained in:
@@ -5687,11 +5687,6 @@ public:
|
||||
/// imported from C/ObjectiveC.
|
||||
bool isArgumentOfImportedDecl(ConstraintLocatorBuilder locator);
|
||||
|
||||
/// Check whether given closure should participate in inference e.g.
|
||||
/// if it's a single-expression closure - it always does, but
|
||||
/// multi-statement closures require special flags.
|
||||
bool participatesInInference(ClosureExpr *closure) const;
|
||||
|
||||
/// Visit each subexpression that will be part of the constraint system
|
||||
/// of the given expression, including those in closure bodies that will be
|
||||
/// part of the constraint system.
|
||||
|
||||
Reference in New Issue
Block a user