Skip to content

Commit 2decf8f

Browse files
committed
[libSyntax] Rename recordReuseInformation to setRecordReuseInformation
1 parent a791a3d commit 2decf8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/Parse/SyntaxParsingCache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class SyntaxParsingCache {
8080
llvm::Optional<Syntax> lookUp(size_t NewPosition, SyntaxKind Kind);
8181

8282
/// Turn recording of reused ranges on
83-
void recordReuseInformation() { RecordReuseInformation = true; }
83+
void setRecordReuseInformation() { RecordReuseInformation = true; }
8484

8585
/// Return the ranges of the new source file that have been successfully
8686
/// looked up in this cache as a (start, end) pair of byte offsets in the

tools/swift-syntax-test/swift-syntax-test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ int parseFile(const char *MainExecutablePath, const StringRef InputFileName,
553553
}
554554
SyntaxCache = new SyntaxParsingCache(OldSyntaxTree.getValue());
555555

556-
SyntaxCache->recordReuseInformation();
556+
SyntaxCache->setRecordReuseInformation();
557557

558558
if (options::OldSourceFilename.empty()) {
559559
llvm::errs() << "The old syntax file must be provided to translate "

0 commit comments

Comments
 (0)