@@ -14,8 +14,7 @@ import Foundation
1414import RegexBuilder
1515
1616/// All the information necessary to replay a sourcektid request.
17- @_spi ( Testing)
18- public struct RequestInfo : Sendable {
17+ package struct RequestInfo : Sendable {
1918 /// The JSON request object. Contains the following dynamic placeholders:
2019 /// - `$OFFSET`: To be replaced by `offset` before running the request
2120 /// - `$FILE`: Will be replaced with a path to the file that contains the reduced source code.
@@ -27,15 +26,12 @@ public struct RequestInfo: Sendable {
2726 var offset : Int
2827
2928 /// The compiler arguments of the request. Replaces the `$COMPILER_ARGS`placeholder in the request template.
30- @_spi ( Testing)
31- public var compilerArgs : [ String ]
29+ package var compilerArgs : [ String ]
3230
3331 /// The contents of the file that the sourcekitd request operates on.
34- @_spi ( Testing)
35- public var fileContents : String
32+ package var fileContents : String
3633
37- @_spi ( Testing)
38- public func request( for file: URL ) throws -> String {
34+ package func request( for file: URL ) throws -> String {
3935 let encoder = JSONEncoder ( )
4036 encoder. outputFormatting = . prettyPrinted
4137 guard var compilerArgs = String ( data: try encoder. encode ( compilerArgs) , encoding: . utf8) else {
@@ -60,8 +56,7 @@ public struct RequestInfo: Sendable {
6056 }
6157 """
6258
63- @_spi ( Testing)
64- public init ( requestTemplate: String , offset: Int , compilerArgs: [ String ] , fileContents: String ) {
59+ package init ( requestTemplate: String , offset: Int , compilerArgs: [ String ] , fileContents: String ) {
6560 self . requestTemplate = requestTemplate
6661 self . offset = offset
6762 self . compilerArgs = compilerArgs
@@ -71,8 +66,7 @@ public struct RequestInfo: Sendable {
7166 /// Creates `RequestInfo` from the contents of the JSON sourcekitd request at `requestPath`.
7267 ///
7368 /// The contents of the source file are read from disk.
74- @_spi ( Testing)
75- public init ( request: String ) throws {
69+ package init ( request: String ) throws {
7670 var requestTemplate = request
7771
7872 // Extract offset
0 commit comments