@@ -1013,16 +1013,16 @@ public final class ManifestLoader: ManifestLoaderProtocol {
1013
1013
}
1014
1014
1015
1015
extension ManifestLoader {
1016
- struct CacheKey : Hashable {
1016
+ package struct CacheKey : Hashable {
1017
1017
let packageIdentity : PackageIdentity
1018
1018
let manifestPath : AbsolutePath
1019
1019
let manifestContents : [ UInt8 ]
1020
1020
let toolsVersion : ToolsVersion
1021
1021
let env : Environment
1022
1022
let swiftpmVersion : String
1023
- let sha256Checksum : String
1023
+ package let sha256Checksum : String
1024
1024
1025
- init ( packageIdentity: PackageIdentity ,
1025
+ package init ( packageIdentity: PackageIdentity ,
1026
1026
packageLocation: String ,
1027
1027
manifestPath: AbsolutePath ,
1028
1028
toolsVersion: ToolsVersion ,
@@ -1051,7 +1051,7 @@ extension ManifestLoader {
1051
1051
self . sha256Checksum = sha256Checksum
1052
1052
}
1053
1053
1054
- func hash( into hasher: inout Hasher ) {
1054
+ package func hash( into hasher: inout Hasher ) {
1055
1055
hasher. combine ( self . sha256Checksum)
1056
1056
}
1057
1057
@@ -1082,7 +1082,7 @@ extension ManifestLoader {
1082
1082
}
1083
1083
1084
1084
extension ManifestLoader {
1085
- struct EvaluationResult : Codable {
1085
+ package struct EvaluationResult : Codable {
1086
1086
/// The path to the diagnostics file (.dia).
1087
1087
///
1088
1088
/// This is only present if serialized diagnostics are enabled.
@@ -1094,11 +1094,18 @@ extension ManifestLoader {
1094
1094
var compilerOutput : String ?
1095
1095
1096
1096
/// The manifest in JSON format.
1097
- var manifestJSON : String ?
1097
+ package var manifestJSON : String ?
1098
1098
1099
1099
/// The command line used to compile the manifest
1100
1100
var compilerCommandLine : [ String ] ?
1101
1101
1102
+ package init ( diagnosticFile: AbsolutePath ? = nil , compilerOutput: String ? = nil , manifestJSON: String ? = nil , compilerCommandLine: [ String ] ? = nil ) {
1103
+ self . diagnosticFile = diagnosticFile
1104
+ self . compilerOutput = compilerOutput
1105
+ self . manifestJSON = manifestJSON
1106
+ self . compilerCommandLine = compilerCommandLine
1107
+ }
1108
+
1102
1109
/// Any non-compiler error that might have occurred during manifest loading.
1103
1110
///
1104
1111
/// For e.g., we could have failed to spawn the process or create temporary file.
0 commit comments