Skip to content

Commit f3ff1b4

Browse files
committed
Provide the cached SourceLocationConverter for emitted diagnostics
1 parent af5e0aa commit f3ff1b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ASTGen/Sources/ASTGen/DiagnosticsBridge.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ public func addQueuedSourceFile(
361361
let sourceFile = sourceFilePtr.assumingMemoryBound(to: ExportedSourceFile.self)
362362
let sourceFileID = queuedDiagnostics.pointee.grouped.addSourceFile(
363363
tree: sourceFile.pointee.syntax,
364+
sourceLocationConverter: sourceFile.pointee.sourceLocationConverter,
364365
displayName: displayName,
365366
parent: parent
366367
)

0 commit comments

Comments
 (0)