File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,10 @@ class ConstraintLocator : public llvm::FoldingSetNode {
204
204
// / components.
205
205
bool isForKeyPathComponent () const ;
206
206
207
+ // / Determine whether this locator points to a result type of
208
+ // / a key path component.
209
+ bool isForKeyPathComponentResult () const ;
210
+
207
211
// / Determine whether this locator points to the generic parameter.
208
212
bool isForGenericParameter () const ;
209
213
Original file line number Diff line number Diff line change @@ -177,6 +177,10 @@ bool ConstraintLocator::isForKeyPathComponent() const {
177
177
});
178
178
}
179
179
180
+ bool ConstraintLocator::isForKeyPathComponentResult () const {
181
+ return isLastElement<LocatorPathElt::KeyPathComponentResult>();
182
+ }
183
+
180
184
bool ConstraintLocator::isForGenericParameter () const {
181
185
return isLastElement<LocatorPathElt::GenericParameter>();
182
186
}
You can’t perform that action at this time.
0 commit comments