Skip to content

Commit cbb8993

Browse files
committed
Rename _SwiftSyntaxMacros --> SwiftSyntaxMacros.
This is intended to be it's final name.
1 parent 9093d1b commit cbb8993

20 files changed

+11
-11
lines changed

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let package = Package(
4040
.library(name: "SwiftSyntax", type: .static, targets: ["SwiftSyntax"]),
4141
.library(name: "SwiftSyntaxParser", type: .static, targets: ["SwiftSyntaxParser"]),
4242
.library(name: "SwiftSyntaxBuilder", type: .static, targets: ["SwiftSyntaxBuilder"]),
43-
.library(name: "_SwiftSyntaxMacros", type: .static, targets: ["_SwiftSyntaxMacros"]),
43+
.library(name: "SwiftSyntaxMacros", type: .static, targets: ["SwiftSyntaxMacros"]),
4444
.library(name: "SwiftRefactor", type: .static, targets: ["SwiftRefactor"]),
4545
],
4646
targets: [
@@ -115,7 +115,7 @@ let package = Package(
115115
]
116116
),
117117
.target(
118-
name: "_SwiftSyntaxMacros",
118+
name: "SwiftSyntaxMacros",
119119
dependencies: [
120120
"SwiftSyntax", "SwiftSyntaxBuilder", "SwiftParser", "SwiftDiagnostics"
121121
],
@@ -158,7 +158,7 @@ let package = Package(
158158
name: "SwiftSyntaxMacrosTest",
159159
dependencies: ["SwiftDiagnostics", "SwiftOperators", "SwiftParser",
160160
"_SwiftSyntaxTestSupport", "SwiftSyntaxBuilder",
161-
"_SwiftSyntaxMacros"]
161+
"SwiftSyntaxMacros"]
162162
),
163163
.testTarget(
164164
name: "PerformanceTest",

Sources/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ add_subdirectory(SwiftParser)
3838
add_subdirectory(SwiftParserDiagnostics)
3939
add_subdirectory(SwiftOperators)
4040
add_subdirectory(SwiftSyntaxBuilder)
41-
add_subdirectory(_SwiftSyntaxMacros)
41+
add_subdirectory(SwiftSyntaxMacros)
4242
add_subdirectory(IDEUtils)

Sources/_SwiftSyntaxMacros/CMakeLists.txt renamed to Sources/SwiftSyntaxMacros/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# See http://swift.org/LICENSE.txt for license information
77
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
88

9-
add_swift_host_library(_SwiftSyntaxMacros
9+
add_swift_host_library(SwiftSyntaxMacros
1010
MacroProtocols/AccessorMacro.swift
1111
MacroProtocols/AttachedMacro.swift
1212
MacroProtocols/CodeItemMacro.swift
@@ -24,7 +24,7 @@ add_swift_host_library(_SwiftSyntaxMacros
2424
Syntax+MacroEvaluation.swift
2525
)
2626

27-
target_link_libraries(_SwiftSyntaxMacros PUBLIC
27+
target_link_libraries(SwiftSyntaxMacros PUBLIC
2828
SwiftParser
2929
SwiftSyntaxBuilder
3030
)

Sources/_SwiftSyntaxMacros/_SwiftSyntaxMacros.docc/Info.plist renamed to Sources/SwiftSyntaxMacros/SwiftSyntaxMacros.docc/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleName</key>
6-
<string>_SwiftSyntaxMacros</string>
6+
<string>SwiftSyntaxMacros</string>
77
<key>CFBundleDisplayName</key>
8-
<string>_SwiftSyntaxMacros</string>
8+
<string>SwiftSyntaxMacros</string>
99
<key>CFBundleIdentifier</key>
1010
<string>com.apple.swift-syntax-macros</string>
1111
<key>CFBundleDevelopmentRegion</key>

Sources/_SwiftSyntaxMacros/_SwiftSyntaxMacros.docc/_SwiftSyntaxMacros.md renamed to Sources/SwiftSyntaxMacros/SwiftSyntaxMacros.docc/SwiftSyntaxMacros.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ``_SwiftSyntaxMacros``
1+
# ``SwiftSyntaxMacros``
22

33

44

@@ -34,4 +34,4 @@ New example macros can be added by defining new types that conform to the approp
3434

3535
## What's the future for this library?
3636

37-
Well, that depends. The `_SwiftSyntaxMacros` module is part of a potential vision for a macros feature in Swift, where the effect of macro evaluation is as it works here---executable Swift code that transforms a given syntax tree into another syntax tree. That design also integrates macros into the type checker, so that macros are only evaluated on well-typed inputs and are expected to either produce well-typed syntax trees as output or emit diagnostics along the way. If that design is accepted as the design for Swift, much of this module will remain as it is---but the examples themselves will be divided into a builtin set of macros that are always available to the compiler (e.g., to provide the implementation for things like `#line`) or moved into a separate examples module to provide documentation on how to use the feature.
37+
Well, that depends. The `SwiftSyntaxMacros` module is part of a potential vision for a macros feature in Swift, where the effect of macro evaluation is as it works here---executable Swift code that transforms a given syntax tree into another syntax tree. That design also integrates macros into the type checker, so that macros are only evaluated on well-typed inputs and are expected to either produce well-typed syntax trees as output or emit diagnostics along the way. If that design is accepted as the design for Swift, much of this module will remain as it is---but the examples themselves will be divided into a builtin set of macros that are always available to the compiler (e.g., to provide the implementation for things like `#line`) or moved into a separate examples module to provide documentation on how to use the feature.

Tests/SwiftSyntaxMacrosTest/MacroSystemTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import SwiftDiagnostics
1414
import SwiftParser
1515
import SwiftSyntax
1616
import SwiftSyntaxBuilder
17-
import _SwiftSyntaxMacros
17+
import SwiftSyntaxMacros
1818
import _SwiftSyntaxTestSupport
1919
import XCTest
2020

0 commit comments

Comments
 (0)