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 66b8400 commit cf43ffeCopy full SHA for cf43ffe
Sources/SourceKitLSP/Swift/SwiftLanguageService.swift
@@ -1229,10 +1229,6 @@ extension DocumentSnapshot {
1229
}
1230
1231
/// Converts the given `String.Index` to a UTF-16-based line:column position.
1232
- ///
1233
- /// If the index does not refer to a valid position within the snapshot, returns the closest valid
1234
- /// position and logs a fault containing the file and line of the caller (from `callerFile` and
1235
- /// `callerLine`).
1236
func position(of index: String.Index, fromLine: Int = 0) -> Position {
1237
let (line, utf16Column) = lineTable.lineAndUTF16ColumnOf(index, fromLine: fromLine)
1238
return Position(line: line, utf16index: utf16Column)
0 commit comments