File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,9 @@ class ConstraintLocator : public llvm::FoldingSetNode {
275
275
// / a key path component.
276
276
bool isForKeyPathComponentResult () const ;
277
277
278
+ // / Determine whether this locator points to a key path component.
279
+ bool isForKeyPathComponent () const ;
280
+
278
281
// / Determine whether this locator points to the generic parameter.
279
282
bool isForGenericParameter () const ;
280
283
Original file line number Diff line number Diff line change @@ -598,6 +598,10 @@ bool ConstraintLocator::isForKeyPathComponentResult() const {
598
598
return isLastElement<LocatorPathElt::KeyPathComponentResult>();
599
599
}
600
600
601
+ bool ConstraintLocator::isForKeyPathComponent () const {
602
+ return isLastElement<LocatorPathElt::KeyPathComponent>();
603
+ }
604
+
601
605
bool ConstraintLocator::isForGenericParameter () const {
602
606
return isLastElement<LocatorPathElt::GenericParameter>();
603
607
}
You can’t perform that action at this time.
0 commit comments