@@ -289,7 +289,7 @@ class RewriteTreeNode {
289
289
// / \param path The path to match.
290
290
// / \param prefixLength The length of the prefix leading up to \c path.
291
291
Optional<std::pair<unsigned , RewritePath>>
292
- bestMatch (GenericParamKey base, RelativeRewritePath path,
292
+ bestRewritePath (GenericParamKey base, RelativeRewritePath path,
293
293
unsigned prefixLength);
294
294
295
295
// / Merge the given rewrite tree into \c other.
@@ -3293,7 +3293,7 @@ void RewriteTreeNode::enumerateRewritePathsImpl(
3293
3293
}
3294
3294
3295
3295
Optional<std::pair<unsigned , RewritePath>>
3296
- RewriteTreeNode::bestMatch (GenericParamKey base, RelativeRewritePath path,
3296
+ RewriteTreeNode::bestRewritePath (GenericParamKey base, RelativeRewritePath path,
3297
3297
unsigned prefixLength) {
3298
3298
Optional<std::pair<unsigned , RewritePath>> best;
3299
3299
unsigned bestAdjustedLength = 0 ;
@@ -3525,7 +3525,7 @@ Type GenericSignatureBuilder::getCanonicalTypeParameter(Type type) {
3525
3525
if (auto rootNode = Impl->getRewriteTreeRootIfPresent (equivClass)) {
3526
3526
// Find the best rewrite rule for the path starting at startIndex.
3527
3527
auto match =
3528
- rootNode->bestMatch (genericParamType,
3528
+ rootNode->bestRewritePath (genericParamType,
3529
3529
llvm::makeArrayRef (path).slice (startIndex),
3530
3530
startIndex);
3531
3531
0 commit comments