File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
lib/ASTGen/Sources/ASTGen Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 10
10
//
11
11
//===----------------------------------------------------------------------===//
12
12
13
- //import AST
14
- //import Basic
13
+ import CBasicBridging
15
14
import CASTBridging
16
15
17
16
#if canImport(_CompilerRegexParser)
@@ -114,9 +113,9 @@ public func _RegexLiteralParsingFn(
114
113
return false
115
114
} catch let error as CompilerParseError {
116
115
var diagLoc = bridgedDiagnosticBaseLoc
117
- if let _diagLoc = diagLoc. raw, let errorLoc = error. location {
116
+ if diagLoc. raw != nil , let errorLoc = error. location {
118
117
let offset = str. utf8. distance ( from: str. startIndex, to: errorLoc)
119
- diagLoc = BridgedSourceLoc ( raw : _diagLoc . advanced ( by : offset) )
118
+ diagLoc = SourceLoc_advanced ( diagLoc , SwiftInt ( offset) )
120
119
}
121
120
122
121
var message = error. message
You can’t perform that action at this time.
0 commit comments