mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[libSyntax] Rename recordReuseInformation to setRecordReuseInformation
This commit is contained in:
@@ -80,7 +80,7 @@ public:
|
||||
llvm::Optional<Syntax> lookUp(size_t NewPosition, SyntaxKind Kind);
|
||||
|
||||
/// Turn recording of reused ranges on
|
||||
void recordReuseInformation() { RecordReuseInformation = true; }
|
||||
void setRecordReuseInformation() { RecordReuseInformation = true; }
|
||||
|
||||
/// Return the ranges of the new source file that have been successfully
|
||||
/// looked up in this cache as a (start, end) pair of byte offsets in the
|
||||
|
||||
@@ -553,7 +553,7 @@ int parseFile(const char *MainExecutablePath, const StringRef InputFileName,
|
||||
}
|
||||
SyntaxCache = new SyntaxParsingCache(OldSyntaxTree.getValue());
|
||||
|
||||
SyntaxCache->recordReuseInformation();
|
||||
SyntaxCache->setRecordReuseInformation();
|
||||
|
||||
if (options::OldSourceFilename.empty()) {
|
||||
llvm::errs() << "The old syntax file must be provided to translate "
|
||||
|
||||
Reference in New Issue
Block a user