@@ -49,27 +49,27 @@ extension Optional where Wrapped == SourceLoc {
4949
5050public struct CharSourceRange {
5151 private let start : SourceLoc
52- private let byteLength : Int
52+ private let byteLength : UInt32
5353
54- public init ( start: SourceLoc , byteLength: Int ) {
54+ public init ( start: SourceLoc , byteLength: UInt32 ) {
5555 self . start = start
5656 self . byteLength = byteLength
5757 }
5858
59- public init ? ( bridged: BridgedCharSourceRange ) {
60- guard let start = SourceLoc ( bridged: bridged. start ) else {
59+ public init ? ( bridged: swift . CharSourceRange ) {
60+ guard let start = SourceLoc ( bridged: bridged. getStart ( ) ) else {
6161 return nil
6262 }
63- self . init ( start: start, byteLength: bridged. byteLength )
63+ self . init ( start: start, byteLength: bridged. getByteLength ( ) )
6464 }
6565
66- public var bridged : BridgedCharSourceRange {
67- . init( start: start . bridged, byteLength : byteLength)
66+ public var bridged : swift . CharSourceRange {
67+ . init( start. bridged, byteLength)
6868 }
6969}
7070
7171extension Optional where Wrapped == CharSourceRange {
72- public var bridged : BridgedCharSourceRange {
73- self ? . bridged ?? . init( start : . init( ) , byteLength : 0 )
72+ public var bridged : swift . CharSourceRange {
73+ self ? . bridged ?? . init( . init( ) , 0 )
7474 }
7575}
0 commit comments