File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
CodeGeneration/Sources/generate-swiftsyntax/templates/swiftsyntax Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,12 @@ import SyntaxSupport
16
16
import Utils
17
17
18
18
let syntaxTransformFile = SourceFileSyntax ( leadingTrivia: copyrightHeader) {
19
- try ! ProtocolDeclSyntax ( " public protocol SyntaxTransformVisitor " ) {
19
+ try ! ProtocolDeclSyntax (
20
+ """
21
+ @_spi(SyntaxTransformVisitor)
22
+ public protocol SyntaxTransformVisitor
23
+ """
24
+ ) {
20
25
DeclSyntax ( " associatedtype ResultType = Void " )
21
26
22
27
DeclSyntax ( " func visitAny(_ node: Syntax) -> ResultType " )
Original file line number Diff line number Diff line change 12
12
13
13
import XCTest
14
14
import SwiftParser
15
- import SwiftSyntax
15
+ @ _spi ( SyntaxTransformVisitor ) import SwiftSyntax
16
16
17
17
final class SyntaxTransformVisitorTest : XCTestCase {
18
18
public func testFunctionCounter( ) {
You can’t perform that action at this time.
0 commit comments