Skip to content

Commit 9fc06ce

Browse files
committed
[ASTGen] Update for SPI in swift-syntax
All symbols in `SwiftSyntaxMacroExpansion` and `SwiftCompilerPluginMessageHandling` are now SPI.
1 parent ef26539 commit 9fc06ce

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/ASTGen/Sources/ASTGen/Macros.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
import ASTBridging
1414
import BasicBridging
15-
@_spi(ExperimentalLanguageFeature) import SwiftCompilerPluginMessageHandling
15+
@_spi(PluginMessage) @_spi(ExperimentalLanguageFeature) import SwiftCompilerPluginMessageHandling
1616
import SwiftDiagnostics
1717
import SwiftOperators
1818
import SwiftSyntax
1919
import SwiftSyntaxBuilder
20-
@_spi(ExperimentalLanguageFeature) import SwiftSyntaxMacroExpansion
20+
@_spi(MacroExpansion) @_spi(ExperimentalLanguageFeature) import SwiftSyntaxMacroExpansion
2121
@_spi(ExperimentalLanguageFeature) import SwiftSyntaxMacros
2222

2323
/// Describes a macro that has been "exported" to the C++ part of the

lib/ASTGen/Sources/ASTGen/PluginHost.swift

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

1313
import ASTBridging
1414
import BasicBridging
15-
import SwiftCompilerPluginMessageHandling
15+
@_spi(PluginMessage) import SwiftCompilerPluginMessageHandling
1616
import SwiftSyntax
1717
import swiftLLVMJSON
1818

tools/swift-plugin-server/Sources/swift-plugin-server/swift-plugin-server.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import SwiftCompilerPluginMessageHandling
13+
@_spi(PluginMessage) import SwiftCompilerPluginMessageHandling
1414
import SwiftSyntaxMacros
1515
import swiftLLVMJSON
1616
import CSwiftPluginServer

0 commit comments

Comments
 (0)