Skip to content

Commit 45893ff

Browse files
committed
Replace @testable with @_spi(Testing)
1 parent c269c65 commit 45893ff

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Sources/SourceKitLSP/Swift/CodeActions/ConvertJSONToCodableStruct.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ import SwiftSyntax
5555
/// }
5656
/// }
5757
/// ```
58-
struct ConvertJSONToCodableStruct: EditRefactoringProvider {
59-
static func textRefactor(
58+
@_spi(Testing)
59+
public struct ConvertJSONToCodableStruct: EditRefactoringProvider {
60+
@_spi(Testing)
61+
public static func textRefactor(
6062
syntax: Syntax,
6163
in context: Void
6264
) -> [SourceEdit] {

Tests/SourceKitLSPTests/SyntaxRefactorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import SwiftRefactor
1515
import SwiftSyntax
1616
import XCTest
1717

18-
@testable import SourceKitLSP
18+
@_spi(Testing) import SourceKitLSP
1919

2020
final class SyntaxRefactorTests: XCTestCase {
2121
func testConvertJSONToCodableStructClosure() throws {

0 commit comments

Comments
 (0)