Skip to content

Commit 9dd58f2

Browse files
committed
[Package] Underscore "internal" products
SwiftCompilerPluginMessageHandling and SwiftLibraryPluginProvider are only meant to be used by internal components (cherry picked from commit 37ec703)
1 parent c18e9ca commit 9dd58f2

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.spi.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@ builder:
1010
- SwiftSyntax
1111
- SwiftBasicFormat
1212
- SwiftCompilerPlugin
13-
- SwiftCompilerPluginMessageHandling
1413
- SwiftDiagnostics
1514
- SwiftIDEUtils
16-
- SwiftLibraryPluginProvider
1715
- SwiftOperators
1816
- SwiftParser
1917
- SwiftParserDiagnostics
2018
- SwiftRefactor
2119
- SwiftSyntaxBuilder
2220
- SwiftSyntaxMacros
2321
- SwiftSyntaxMacroExpansion
22+
- SwiftSyntaxMacrosGenericTestSupport
2423
- SwiftSyntaxMacrosTestSupport
2524
custom_documentation_parameters: [--experimental-skip-synthesized-symbols]

Package.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ let package = Package(
1515
products: [
1616
.library(name: "SwiftBasicFormat", targets: ["SwiftBasicFormat"]),
1717
.library(name: "SwiftCompilerPlugin", targets: ["SwiftCompilerPlugin"]),
18-
.library(name: "SwiftCompilerPluginMessageHandling", targets: ["SwiftCompilerPluginMessageHandling"]),
1918
.library(name: "SwiftDiagnostics", targets: ["SwiftDiagnostics"]),
2019
.library(name: "SwiftIDEUtils", targets: ["SwiftIDEUtils"]),
21-
.library(name: "SwiftLibraryPluginProvider", targets: ["SwiftLibraryPluginProvider"]),
2220
.library(name: "SwiftOperators", targets: ["SwiftOperators"]),
2321
.library(name: "SwiftParser", targets: ["SwiftParser"]),
2422
.library(name: "SwiftParserDiagnostics", targets: ["SwiftParserDiagnostics"]),
@@ -28,10 +26,9 @@ let package = Package(
2826
.library(name: "SwiftSyntaxMacros", targets: ["SwiftSyntaxMacros"]),
2927
.library(name: "SwiftSyntaxMacroExpansion", targets: ["SwiftSyntaxMacroExpansion"]),
3028
.library(name: "SwiftSyntaxMacrosTestSupport", targets: ["SwiftSyntaxMacrosTestSupport"]),
31-
.library(
32-
name: "SwiftSyntaxMacrosGenericTestSupport",
33-
targets: ["SwiftSyntaxMacrosGenericTestSupport"]
34-
),
29+
.library(name: "SwiftSyntaxMacrosGenericTestSupport", targets: ["SwiftSyntaxMacrosGenericTestSupport"]),
30+
.library(name: "_SwiftCompilerPluginMessageHandling", targets: ["SwiftCompilerPluginMessageHandling"]),
31+
.library(name: "_SwiftLibraryPluginProvider", targets: ["SwiftLibraryPluginProvider"]),
3532
],
3633
targets: [
3734
// MARK: - Internal helper targets

SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/commands/VerifySourceCode.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ struct VerifySpiYmlExecutor {
129129
.components(separatedBy: "\n")
130130
.filter({ !$0.matches(of: extractNameRegex).isEmpty })
131131
.map { $0.replacing(extractNameRegex) { $0.1 } }
132+
.filter({ !$0.hasPrefix("_") })
132133
.sorted()
133134
}
134135
/// Returns all targets listed in `.spi.yml`.

0 commit comments

Comments
 (0)