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 {
275275 // / a key path component.
276276 bool isForKeyPathComponentResult () const ;
277277
278+ // / Determine whether this locator points to a key path component.
279+ bool isForKeyPathComponent () const ;
280+
278281 // / Determine whether this locator points to the generic parameter.
279282 bool isForGenericParameter () const ;
280283
Original file line number Diff line number Diff line change @@ -598,6 +598,10 @@ bool ConstraintLocator::isForKeyPathComponentResult() const {
598598 return isLastElement<LocatorPathElt::KeyPathComponentResult>();
599599}
600600
601+ bool ConstraintLocator::isForKeyPathComponent () const {
602+ return isLastElement<LocatorPathElt::KeyPathComponent>();
603+ }
604+
601605bool ConstraintLocator::isForGenericParameter () const {
602606 return isLastElement<LocatorPathElt::GenericParameter>();
603607}
You can’t perform that action at this time.
0 commit comments