File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,10 @@ class TypeVariableType::Implementation {
491
491
// / a type of a key path expression.
492
492
bool isKeyPathType () const ;
493
493
494
+ // / Determine whether this type variable represents a root type of a key path
495
+ // / expression.
496
+ bool isKeyPathRoot () const ;
497
+
494
498
// / Determine whether this type variable represents a value type of a key path
495
499
// / expression.
496
500
bool isKeyPathValue () const ;
Original file line number Diff line number Diff line change @@ -144,6 +144,10 @@ bool TypeVariableType::Implementation::isKeyPathType() const {
144
144
return locator && locator->isKeyPathType ();
145
145
}
146
146
147
+ bool TypeVariableType::Implementation::isKeyPathRoot () const {
148
+ return locator && locator->isKeyPathRoot ();
149
+ }
150
+
147
151
bool TypeVariableType::Implementation::isKeyPathValue () const {
148
152
return locator && locator->isKeyPathValue ();
149
153
}
You can’t perform that action at this time.
0 commit comments