You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Changelog.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Note: This is in reverse chronological order, so newer entries are added to the
4
4
5
5
## Swift 5.3
6
6
7
-
* Introduced `FunctionCallExprSyntax.additionalTrailingClosures` property with type `MultipleTrailingClosureElementListSyntax?` for supporting [SE-0279 Multiple Trailing Closures](https://github.com/apple/swift-evolution/blob/master/proposals/0279-multiple-trailing-closures.md).
7
+
* Introduced `FunctionCallExprSyntax.additionalTrailingClosures` property with type `MultipleTrailingClosureElementListSyntax?` for supporting [SE-0279 Multiple Trailing Closures](https://github.com/apple/swift-evolution/blob/main/proposals/0279-multiple-trailing-closures.md).
8
8
9
9
* Introduced `syntaxNodeType` property for all types conforming to `SyntaxProtocol`, which returns the underlying syntax node type. It is primarily intended as a debugging aid during development.
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# SwiftSyntax
2
2
3
3
SwiftSyntax is a set of Swift bindings for the
4
-
[libSyntax](https://github.com/apple/swift/tree/master/lib/Syntax) library. It
4
+
[libSyntax](https://github.com/apple/swift/tree/main/lib/Syntax) library. It
5
5
allows for Swift tools to parse, inspect, generate, and transform Swift source
6
6
code.
7
7
@@ -46,7 +46,7 @@ Then, import `SwiftSyntax` in your Swift code.
46
46
47
47
### Declare SwiftPM dependency with nightly build
48
48
49
-
1. Download and install the latest Trunk Development (master) [toolchain](https://swift.org/download/#snapshots).
49
+
1. Download and install the latest Trunk Development [toolchain](https://swift.org/download/#snapshots).
50
50
51
51
2. Define the `TOOLCHAINS` environment variable as below to have the `swift` command point inside the toolchain:
52
52
@@ -136,11 +136,11 @@ If you should hit any issues while using SwiftSyntax, we appreciate bug reports
136
136
137
137
## Contributing
138
138
139
-
### Building SwiftSyntax from `master`
139
+
### Building SwiftSyntax from `main`
140
140
141
-
Since SwiftSyntax relies on definitions in the main Swift repository to generate the layout of the syntax tree using `gyb`, a checkout of [apple/swift](https://github.com/apple/swift) is still required to build `master` of SwiftSyntax.
141
+
Since SwiftSyntax relies on definitions in the main Swift repository to generate the layout of the syntax tree using `gyb`, a checkout of [apple/swift](https://github.com/apple/swift) is still required to build the latest development snapshot of SwiftSyntax.
142
142
143
-
To build the `master` version of SwiftSyntax, follow the following instructions:
143
+
To build the `main` branch of SwiftSyntax, follow the following instructions:
144
144
145
145
1. Check `swift-syntax` and `swift` out side by side:
146
146
@@ -150,14 +150,14 @@ To build the `master` version of SwiftSyntax, follow the following instructions:
150
150
- swift-syntax
151
151
```
152
152
153
-
2. Make sure you have a recent [master Swift toolchain](https://swift.org/download/#snapshots) installed.
153
+
2. Make sure you have a recent [Trunk Swift Toolchain](https://swift.org/download/#snapshots) installed.
154
154
3. Define the `TOOLCHAINS` environment variable as below to have the `swift` command point inside the toolchain:
155
155
156
156
```
157
157
$ export TOOLCHAINS=swift
158
158
```
159
159
160
-
4. To make sure everything is setup correctly, check the return statement of `xcrun --find swift`. It should point inside the latest installed master toolchain. If it points inside an Xcode toolchain, check that you exported the `TOOLCHAINS` environment variable correctly. If it points inside a version specific toolchain (like Swift 5.0-dev), you'll need to remove that toolchain.
160
+
4. To make sure everything is setup correctly, check the return statement of `xcrun --find swift`. It should point inside the latest installed trunk development toolchain. If it points inside an Xcode toolchain, check that you exported the `TOOLCHAINS` environment variable correctly. If it points inside a version specific toolchain (like Swift 5.0-dev), you'll need to remove that toolchain.
161
161
5. Run `swift-syntax/build-script.py`.
162
162
163
163
If, despite following those instructions, you get compiler errors, the Swift toolchain might be too old to contain recent changes in Swift's SwiftSyntaxParser C library. In that case, you'll have to build the compiler and SwiftSyntax together with the following command:
@@ -173,7 +173,7 @@ Afterwards, SwiftPM can also generate an Xcode project to develop SwiftSyntax by
173
173
If you also want to run tests locally, read the section below as testing has additional requirements.
174
174
175
175
### Local Testing
176
-
SwiftSyntax uses some test utilities that need to be built as part of the Swift compiler project. To build the most recent version of SwiftSyntax and test it, follow the steps in [swift/README.md](https://github.com/apple/swift/blob/master/README.md) and pass `--llbuild --swiftpm --swiftsyntax` to the build script invocation to build SwiftSyntax and all its dependencies using the current `master` compiler.
176
+
SwiftSyntax uses some test utilities that need to be built as part of the Swift compiler project. To build the most recent version of SwiftSyntax and test it, follow the steps in [swift/README.md](https://github.com/apple/swift/blob/main/README.md) and pass `--llbuild --swiftpm --swiftsyntax` to the build script invocation to build SwiftSyntax and all its dependencies using the current trunk (`main`) compiler.
177
177
178
178
SwiftSyntax can then be tested using the build script in `apple/swift` by running
0 commit comments