Commit 1d1aded
committed
Use access levels on imports when compiler(>=6).
Access levels on `import` declarations are a language feature that was
introduced with the Swift 6 compiler but they don't depend on the Swift 6
language mode. `@_implementationOnly import` is now deprecated and `internal
import` should be used instead, so SwiftSyntax's use of access levels on
imports should depend on the compiler version, not the language version to
ensure it no longer uses the `@_implementationOnly` unnecessarily.
As a notable exception, `_SwiftSyntaxCShims` must continue to be imported
`@_implementationOnly` since it's a local module that cannot be loaded by
clients, and `internal import` does not hide modules from dependents when
SwiftSyntax is built without library evolution.1 parent ff4f384 commit 1d1aded
File tree
164 files changed
+168
-168
lines changed- CodeGeneration/Sources/generate-swift-syntax/templates
- swiftparserdiagnostics
- swiftparser
- swiftsyntaxbuilder
- Sources
- SwiftBasicFormat
- SwiftCompilerPluginMessageHandling
- JSON
- SwiftCompilerPlugin
- SwiftDiagnostics
- SwiftIDEUtils
- SwiftLibraryPluginProvider
- SwiftOperators
- SwiftParserDiagnostics
- generated
- SwiftParser
- Lexer
- SwiftParser.docc
- generated
- SwiftRefactor
- SwiftSyntaxBuilder
- generated
- SwiftSyntaxMacroExpansion
- SwiftSyntaxMacrosGenericTestSupport
- SwiftSyntaxMacrosTestSupport
- SwiftSyntaxMacros
- MacroProtocols
- SwiftSyntax
- _SwiftSyntaxTestSupport
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
164 files changed
+168
-168
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
CodeGeneration/Sources/generate-swift-syntax/templates/swiftsyntaxbuilder/BuildableNodesFile.swift
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
CodeGeneration/Sources/generate-swift-syntax/templates/swiftsyntaxbuilder/ResultBuildersFile.swift
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments