mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[incrParse] Fix issue that did not report the first reparsed character as reparsed
This commit is contained in:
@@ -248,8 +248,7 @@ struct ByteBasedSourceRange {
|
||||
|
||||
SourceRange toSourceRange(SourceManager &SourceMgr, unsigned BufferID) {
|
||||
auto StartLoc = SourceMgr.getLocForOffset(BufferID, Start);
|
||||
// SourceRange includes the last offset, we don't. So subtract 1
|
||||
auto EndLoc = SourceMgr.getLocForOffset(BufferID, End - 1);
|
||||
auto EndLoc = SourceMgr.getLocForOffset(BufferID, End);
|
||||
return SourceRange(StartLoc, EndLoc);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user