Skip to content

Commit 2af5115

Browse files
authored
Make conversion between TSCBasic and Basics diagnostics public (#3805)
This is useful for helping clients transition.
1 parent f2dd6ce commit 2af5115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Basics/Observability.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ extension ObservabilitySystem {
515515

516516
@available(*, deprecated, message: "temporary for transition DiagnosticsEngine -> DiagnosticsEmitter")
517517
extension TSCDiagnostic {
518-
init(_ diagnostic: Diagnostic) {
518+
public init(_ diagnostic: Diagnostic) {
519519
let location: DiagnosticLocation
520520
if let legacyLocation = diagnostic.metadata?.legacyDiagnosticLocation {
521521
location = legacyLocation.underlying

0 commit comments

Comments
 (0)