File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
CodeGeneration/Sources/generate-swift-syntax/templates
SwiftParserDiagnostics/generated
SwiftSyntaxBuilder/generated Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import SyntaxSupport
16
16
import Utils
17
17
18
18
let childNameForDiagnosticFile = SourceFileSyntax ( leadingTrivia: copyrightHeader) {
19
- DeclSyntax ( " import SwiftSyntax " )
19
+ DeclSyntax ( " @_spi(ExperimentalLanguageFeatures) import SwiftSyntax" )
20
20
21
21
try ! FunctionDeclSyntax (
22
22
" private func childNameForDiagnostics(_ keyPath: AnyKeyPath) -> String? "
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import SyntaxSupport
16
16
import Utils
17
17
18
18
let buildableNodesFile = SourceFileSyntax ( leadingTrivia: copyrightHeader) {
19
- DeclSyntax ( " import SwiftSyntax " )
19
+ DeclSyntax ( " @_spi(ExperimentalLanguageFeatures) import SwiftSyntax" )
20
20
21
21
for node in SYNTAX_NODES . compactMap ( \. layoutNode) {
22
22
let type = node. type
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- import SwiftSyntax
15
+ @ _spi ( ExperimentalLanguageFeatures ) import SwiftSyntax
16
16
17
17
private func childNameForDiagnostics( _ keyPath: AnyKeyPath ) -> String ? {
18
18
switch keyPath {
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- import SwiftSyntax
15
+ @ _spi ( ExperimentalLanguageFeatures ) import SwiftSyntax
16
16
17
17
extension AccessorDeclSyntax {
18
18
/// A convenience initializer that allows initializing syntax collections using result builders
You can’t perform that action at this time.
0 commit comments