File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,12 @@ getAlternativeLiteralTypes(KnownProtocolKind kind) {
374
374
return *AlternativeLiteralTypes[index];
375
375
}
376
376
377
+ ConstraintLocator *ConstraintSystem::getConstraintLocator (
378
+ Expr *anchor, ArrayRef<ConstraintLocator::PathElement> path) {
379
+ auto summaryFlags = ConstraintLocator::getSummaryFlagsForPath (path);
380
+ return getConstraintLocator (anchor, path, summaryFlags);
381
+ }
382
+
377
383
ConstraintLocator *ConstraintSystem::getConstraintLocator (
378
384
Expr *anchor,
379
385
ArrayRef<ConstraintLocator::PathElement> path,
Original file line number Diff line number Diff line change @@ -1921,6 +1921,12 @@ class ConstraintSystem {
1921
1921
ArrayRef<ConstraintLocator::PathElement> path,
1922
1922
unsigned summaryFlags);
1923
1923
1924
+ // / Retrive the constraint locator for the given anchor and
1925
+ // / path, uniqued and automatically infer the summary flags
1926
+ ConstraintLocator *
1927
+ getConstraintLocator (Expr *anchor,
1928
+ ArrayRef<ConstraintLocator::PathElement> path);
1929
+
1924
1930
// / Retrieve the constraint locator for the given anchor and
1925
1931
// / an empty path, uniqued.
1926
1932
ConstraintLocator *getConstraintLocator (Expr *anchor) {
You can’t perform that action at this time.
0 commit comments