We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b39805 commit df17f19Copy full SHA for df17f19
include/swift/Sema/ConstraintSystem.h
@@ -3031,6 +3031,20 @@ class ConstraintSystem {
3031
return std::get<1>(result->second);
3032
return nullptr;
3033
}
3034
+
3035
+ TypeVariableType *getKeyPathRootType(const KeyPathExpr *keyPath) const {
3036
+ auto result = getKeyPathRootTypeIfAvailable(keyPath);
3037
+ assert(result);
3038
+ return result;
3039
+ }
3040
3041
+ TypeVariableType *
3042
+ getKeyPathRootTypeIfAvailable(const KeyPathExpr *keyPath) const {
3043
+ auto result = KeyPaths.find(keyPath);
3044
+ if (result != KeyPaths.end())
3045
+ return std::get<0>(result->second);
3046
+ return nullptr;
3047
3048
3049
TypeBase* getFavoredType(Expr *E) {
3050
assert(E != nullptr);
0 commit comments