Skip to content

Renamed generate-swiftsyntax to generate-swift-syntax #2073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CodeGeneration/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let package = Package(
.macOS(.v10_15)
],
products: [
.executable(name: "generate-swiftsyntax", targets: ["generate-swiftsyntax"])
.executable(name: "generate-swift-syntax", targets: ["generate-swift-syntax"])
],
dependencies: [
// This directory is a standalone package that uses swift-syntax from the
Expand All @@ -26,7 +26,7 @@ let package = Package(
],
targets: [
.executableTarget(
name: "generate-swiftsyntax",
name: "generate-swift-syntax",
dependencies: [
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftSyntaxBuilder", package: "swift-syntax"),
Expand Down
4 changes: 2 additions & 2 deletions CodeGeneration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ to
```
That way `CodeGeneration` has its own checkout of swift-syntax that is unaffected by the newly generated files. Be sure to revert the change before committing your changes.

To re-generate the files after changing `CodeGeneration` run the `generate-swiftsyntax`
To re-generate the files after changing `CodeGeneration` run the `generate-swift-syntax`
target of `CodeGeneration` and pass `path/to/swift-syntax/Sources` as the argument.

On the command line, this would be
```bash
swift run --package-path CodeGeneration generate-swiftsyntax Sources
swift run --package-path CodeGeneration generate-swift-syntax Sources
```

Or if you open the `CodeGeneration` package in Xcode, you can add the
Expand Down
2 changes: 1 addition & 1 deletion CodeGeneration/Sources/Utils/CopyrightHeader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import SwiftSyntax

public var copyrightHeader: Trivia =
"""
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/generated/IsLexerClassified.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/generated/LayoutNodes+Parsable.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/generated/Parser+TokenSpecSet.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ structures in sync, this project generates code using the Swift package

## Regenerating Files

To re-generate the files after changing `CodeGeneration` run the `generate-swiftsyntax`
To re-generate the files after changing `CodeGeneration` run the `generate-swift-syntax`
target of `CodeGeneration`.

On the command line, this would be
```bash
swift run --package-path CodeGeneration generate-swiftsyntax
swift run --package-path CodeGeneration generate-swift-syntax
```

## Adding and Removing Syntax Nodes
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/ChildNameForKeyPath.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/Keyword.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/SyntaxAnyVisitor.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/SyntaxBaseNodes.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/SyntaxCollections.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/SyntaxEnum.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/SyntaxKind.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/SyntaxRewriter.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/SyntaxTraits.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/SyntaxTransform.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/SyntaxVisitor.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/TokenKind.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/Tokens.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/generated/TriviaPieces.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Automatically generated by generate-swiftsyntax
//// Automatically generated by generate-swift-syntax
//// Do not edit directly!
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension SourceCodeGeneratorCommand {
var args = [
"run",
"--package-path", Paths.codeGenerationDir.relativePath,
"generate-swiftsyntax", sourceDir.relativePath,
"generate-swift-syntax", sourceDir.relativePath,
]

if arguments.verbose {
Expand Down