mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #31943 from owenv/line-and-col
This commit is contained in:
@@ -149,7 +149,7 @@ void EditorDiagConsumer::handleDiagnostic(SourceManager &SM,
|
||||
|
||||
SKInfo.Offset = SM.getLocOffsetInBuffer(Info.Loc, BufferID);
|
||||
std::tie(SKInfo.Line, SKInfo.Column) =
|
||||
SM.getLineAndColumn(Info.Loc, BufferID);
|
||||
SM.getPresumedLineAndColumnForLoc(Info.Loc, BufferID);
|
||||
SKInfo.Filename = SM.getDisplayNameForLoc(Info.Loc).str();
|
||||
|
||||
for (auto R : Info.Ranges) {
|
||||
|
||||
Reference in New Issue
Block a user