Sema: Simplify simplifyLocator()

This commit is contained in:
Slava Pestov
2019-04-02 15:58:53 -04:00
parent 998e62005a
commit 560d3ad529
3 changed files with 4 additions and 89 deletions

View File

@@ -3633,19 +3633,13 @@ bool areConservativelyCompatibleArgumentLabels(OverloadChoice choice,
///
/// \param range Will be populated with an "interesting" range.
///
/// \param targetLocator If non-null, will be set to a locator that describes
/// the target of the input locator.
///
/// \return the simplified locator.
ConstraintLocator *simplifyLocator(ConstraintSystem &cs,
ConstraintLocator *locator,
SourceRange &range,
ConstraintLocator **targetLocator = nullptr);
SourceRange &range);
void simplifyLocator(Expr *&anchor,
ArrayRef<LocatorPathElt> &path,
Expr *&targetAnchor,
SmallVectorImpl<LocatorPathElt> &targetPath,
SourceRange &range);
/// Simplify the given locator down to a specific anchor expression,