File tree Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ public final class SourceLocationConverter {
134
134
public init ( file: String , source: String ) {
135
135
self . file = file
136
136
( self . lines, endOfFile) = computeLines ( source)
137
- assert ( source. lengthOfBytes ( using : . utf8) == endOfFile. utf8Offset)
137
+ assert ( source. utf8. count == endOfFile. utf8Offset)
138
138
}
139
139
140
140
/// Convert a `AbsolutePosition` to a `SourceLocation`. If the position is
Original file line number Diff line number Diff line change 17
17
//
18
18
//===----------------------------------------------------------------------===//
19
19
20
- import Foundation
21
-
22
20
/// A contiguous stretch of a single kind of trivia. The constituent part of
23
21
/// a `Trivia` collection.
24
22
///
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- import Foundation
16
-
17
15
/// A contiguous stretch of a single kind of trivia. The constituent part of
18
16
/// a `Trivia` collection.
19
17
///
You can’t perform that action at this time.
0 commit comments