Skip to content

Commit 4affc21

Browse files
authored
Merge pull request swiftlang#2642 from ahoppen/update-readme-for-codegen
Update readme for CodeGeneration
2 parents 60bc6d4 + 4f7dac8 commit 4affc21

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If you want to modify the generated files, open the [CodeGeneration](CodeGenerat
4949
Alternatively, you can generate the files from the command line by running the following command from the swift-syntax directory
5050
5151
```bash
52-
swift run --package-path CodeGeneration
52+
./swift-syntax-dev-utils generate-source-code
5353
```
5454
5555
## Running Pre-PR Checks Script

CodeGeneration/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@ This directory contains file to generate source code that is part of the SwiftSy
44

55
Some source code inside SwiftSyntax is generated using [SwiftSyntaxBuilder](../Sources/SwiftSyntaxBuilder), a Swift library whose purpose is to generate Swift code using Swift itself. This kind of code generation is performed by the Swift package defined in this directory.
66

7-
To re-generate the files after changing `CodeGeneration` run the `generate-swift-syntax`
8-
target of `CodeGeneration` and pass `path/to/swift-syntax/Sources` as the argument.
7+
To re-generate the files after changing `CodeGeneration` run the following command on the command line.
98

10-
On the command line, this would be
119
```bash
12-
swift run --package-path CodeGeneration generate-swift-syntax Sources
10+
path/to/swift-syntax/swift-syntax-dev-utils generate-source-code
1311
```
14-
15-
Or if you open the `CodeGeneration` package in Xcode, you can add the
16-
`generate-swift syntax ../Sources` arguments using Product -> Scheme -> Edit Scheme…
17-

0 commit comments

Comments
 (0)