We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63becb5 commit 9d9bb53Copy full SHA for 9d9bb53
tools/swift-syntax-test/swift-syntax-test.cpp
@@ -248,8 +248,7 @@ struct ByteBasedSourceRange {
248
249
SourceRange toSourceRange(SourceManager &SourceMgr, unsigned BufferID) {
250
auto StartLoc = SourceMgr.getLocForOffset(BufferID, Start);
251
- // SourceRange includes the last offset, we don't. So subtract 1
252
- auto EndLoc = SourceMgr.getLocForOffset(BufferID, End - 1);
+ auto EndLoc = SourceMgr.getLocForOffset(BufferID, End);
253
return SourceRange(StartLoc, EndLoc);
254
}
255
};
0 commit comments