mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Instead of chaining binops, favor disjunctions with op overloads whose types match existing binding choices
This commit is contained in:
@@ -672,6 +672,15 @@ public:
|
||||
return Nested;
|
||||
}
|
||||
|
||||
unsigned countFavoredNestedConstraints() const {
|
||||
unsigned count = 0;
|
||||
for (auto *constraint : Nested)
|
||||
if (constraint->isFavored() && !constraint->isDisabled())
|
||||
count++;
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
unsigned countActiveNestedConstraints() const {
|
||||
unsigned count = 0;
|
||||
for (auto *constraint : Nested)
|
||||
|
||||
Reference in New Issue
Block a user