Skip to content

Commit 8346917

Browse files
committed
[GSB] RewriteTreeNode::bestMatch -> RewriteTreeNode::bestRewritePath.
1 parent e12abf5 commit 8346917

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class RewriteTreeNode {
289289
/// \param path The path to match.
290290
/// \param prefixLength The length of the prefix leading up to \c path.
291291
Optional<std::pair<unsigned, RewritePath>>
292-
bestMatch(GenericParamKey base, RelativeRewritePath path,
292+
bestRewritePath(GenericParamKey base, RelativeRewritePath path,
293293
unsigned prefixLength);
294294

295295
/// Merge the given rewrite tree into \c other.
@@ -3293,7 +3293,7 @@ void RewriteTreeNode::enumerateRewritePathsImpl(
32933293
}
32943294

32953295
Optional<std::pair<unsigned, RewritePath>>
3296-
RewriteTreeNode::bestMatch(GenericParamKey base, RelativeRewritePath path,
3296+
RewriteTreeNode::bestRewritePath(GenericParamKey base, RelativeRewritePath path,
32973297
unsigned prefixLength) {
32983298
Optional<std::pair<unsigned, RewritePath>> best;
32993299
unsigned bestAdjustedLength = 0;
@@ -3525,7 +3525,7 @@ Type GenericSignatureBuilder::getCanonicalTypeParameter(Type type) {
35253525
if (auto rootNode = Impl->getRewriteTreeRootIfPresent(equivClass)) {
35263526
// Find the best rewrite rule for the path starting at startIndex.
35273527
auto match =
3528-
rootNode->bestMatch(genericParamType,
3528+
rootNode->bestRewritePath(genericParamType,
35293529
llvm::makeArrayRef(path).slice(startIndex),
35303530
startIndex);
35313531

0 commit comments

Comments
 (0)