Skip to content

Commit a685e4d

Browse files
committed
Sources: add missing imports required by MemberImportVisibility
1 parent fb00ef6 commit a685e4d

File tree

144 files changed

+242
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+242
-59
lines changed

Sources/SWBApplePlatform/ActoolInputFileGroupingStrategy.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
public import SWBCore
1414
import SWBUtil
15+
import Foundation
1516

1617
/// A grouping strategy that groups all asset catalogs and all strings files that match sticker packs inside those asset catalogs.
1718
@_spi(Testing) public final class ActoolInputFileGroupingStrategy: InputFileGroupingStrategy {

Sources/SWBApplePlatform/AppIntentsMetadataTaskProducer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import SWBCore
1414
import SWBUtil
1515
import SWBTaskConstruction
16+
import SWBMacro
1617

1718
final class AppIntentsMetadataTaskProducer: PhasedTaskProducer, TaskProducer {
1819

Sources/SWBApplePlatform/CoreDataCompiler.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import SWBUtil
1414
public import SWBCore
15+
import SWBMacro
1516

1617
public final class CoreDataModelCompilerSpec : GenericCompilerSpec, SpecIdentifierType, @unchecked Sendable {
1718
public static let identifier = "com.apple.compilers.model.coredata"

Sources/SWBApplePlatform/CoreMLCompiler.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
public import SWBUtil
1414
public import SWBCore
1515
public import SWBMacro
16+
import SWBProtocol
1617

1718
public struct DiscoveredCoreMLToolSpecInfo: DiscoveredCommandLineToolSpecInfo {
1819
public let toolPath: Path
@@ -151,7 +152,7 @@ public final class CoreMLCompilerSpec : GenericCompilerSpec, SpecIdentifierType,
151152
// When the build setting is empty or is set to Automatic, then use an appropriate string based on the predominant source code language for the target.
152153
if languageSettingValue.isEmpty || languageSettingValue == "Automatic" {
153154
// Note that it would be pretty weird here to not have a configured target, or to have a target which is not a StandardTarget.
154-
let predominantSourceCodeLanguage = (cbc.producer.configuredTarget?.target as? StandardTarget)?.predominantSourceCodeLanguage ?? .undefined
155+
let predominantSourceCodeLanguage = (cbc.producer.configuredTarget?.target as? SWBCore.StandardTarget)?.predominantSourceCodeLanguage ?? .undefined
155156
switch predominantSourceCodeLanguage {
156157
case .swift:
157158
codegenLanguage = "Swift"
@@ -289,7 +290,7 @@ public final class CoreMLCompilerSpec : GenericCompilerSpec, SpecIdentifierType,
289290
}
290291

291292
guard
292-
let target = cbc.producer.configuredTarget?.target as? BuildPhaseTarget,
293+
let target = cbc.producer.configuredTarget?.target as? SWBCore.BuildPhaseTarget,
293294
let outputPath = headerOutputPath,
294295
target.headersBuildPhase != nil else { continue }
295296

Sources/SWBApplePlatform/DevelopmentAssetsTaskProducer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import SWBCore
1414
import SWBUtil
1515
import SWBTaskConstruction
16+
import SWBMacro
1617

1718
final class DevelopmentAssetsTaskProducer: StandardTaskProducer, TaskProducer {
1819
func generateTasks() async -> [any PlannedTask] {

Sources/SWBApplePlatform/InstrumentsPackageBuilderSpec.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import SWBUtil
1414
public import SWBCore
15+
import SWBMacro
1516

1617
public final class InstrumentsPackageBuilderSpec: GenericCompilerSpec, SpecIdentifierType, @unchecked Sendable {
1718
public static let identifier = "com.apple.compilers.instruments-package-builder"

Sources/SWBApplePlatform/IntentsCompiler.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
import SWBUtil
1414
public import SWBCore
15+
import SWBProtocol
16+
import SWBMacro
1517

1618
/// Payload information for Intents tasks.
1719
fileprivate struct IntentsTaskPayload: TaskPayload, Encodable {
@@ -122,7 +124,7 @@ public final class IntentsCompilerSpec : GenericCompilerSpec, SpecIdentifierType
122124
let outputDir = cbc.scope.evaluate(BuiltinMacros.DERIVED_FILE_DIR).join("IntentDefinitionGenerated").join(modelName).normalize()
123125

124126
guard
125-
let target = cbc.producer.configuredTarget?.target as? BuildPhaseTarget,
127+
let target = cbc.producer.configuredTarget?.target as? SWBCore.BuildPhaseTarget,
126128
target.sourcesBuildPhase != nil,
127129
let intentsCodegenVisibility = input.intentsCodegenVisibility else { return }
128130

@@ -136,7 +138,7 @@ public final class IntentsCompilerSpec : GenericCompilerSpec, SpecIdentifierType
136138
// When the build setting is empty or is set to Automatic, then use an appropriate string based on the predominant source code language for the target.
137139
if languageSettingValue.isEmpty || languageSettingValue == "Automatic" {
138140
// Note that it would be pretty weird here to not have a configured target, or to have a target which is not a StandardTarget.
139-
let predominantSourceCodeLanguage = (cbc.producer.configuredTarget?.target as? StandardTarget)?.predominantSourceCodeLanguage ?? .undefined
141+
let predominantSourceCodeLanguage = (cbc.producer.configuredTarget?.target as? SWBCore.StandardTarget)?.predominantSourceCodeLanguage ?? .undefined
140142
switch predominantSourceCodeLanguage {
141143
case .swift:
142144
codegenLanguage = "Swift"
@@ -236,7 +238,7 @@ public final class IntentsCompilerSpec : GenericCompilerSpec, SpecIdentifierType
236238
}
237239

238240
guard
239-
let target = cbc.producer.configuredTarget?.target as? BuildPhaseTarget,
241+
let target = cbc.producer.configuredTarget?.target as? SWBCore.BuildPhaseTarget,
240242
let outputPath = headerOutputPath,
241243
target.headersBuildPhase != nil else { continue }
242244

Sources/SWBApplePlatform/MiGCompiler.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
public import SWBUtil
1414
public import SWBCore
1515
public import SWBMacro
16+
import SWBProtocol
1617

1718
public struct DiscoveredMiGToolSpecInfo: DiscoveredCommandLineToolSpecInfo {
1819
public let toolPath: Path

Sources/SWBApplePlatform/RealityAssetsCompilerSpec.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import Foundation
1414
package import SWBCore
1515
import SWBUtil
16+
import SWBMacro
1617

1718
//---------------------
1819
//

Sources/SWBApplePlatform/ResMergerLinkerSpec.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import SWBUtil
1414
public import SWBCore
15+
import SWBMacro
1516

1617
public final class ResMergerLinkerSpec : GenericLinkerSpec, SpecIdentifierType, @unchecked Sendable {
1718
public static let identifier = "com.apple.pbx.linkers.resmerger"

0 commit comments

Comments
 (0)