File tree Expand file tree Collapse file tree 6 files changed +29
-34
lines changed
Sources/SwiftSyntax/Documentation.docc Expand file tree Collapse file tree 6 files changed +29
-34
lines changed Original file line number Diff line number Diff line change 1
- // swift-tools-version: 5.7
1
+ // swift-tools-version: 5.9
2
2
// The swift-tools-version declares the minimum version of Swift required to build this package.
3
3
4
4
import PackageDescription
5
5
6
6
let package = Package (
7
7
name: " importformatter " ,
8
8
products: [
9
- // Products define the executables and libraries a package produces, and make them visible to other packages.
9
+ // Products define the executables and libraries a package produces, making them visible to other packages.
10
10
. library(
11
11
name: " importformatter " ,
12
12
targets: [ " importformatter " ]
13
13
)
14
14
] ,
15
- dependencies: [
16
- // Dependencies declare other packages that this package depends on.
17
- // .package(url: /* package url */, from: "1.0.0"),
18
- ] ,
19
15
targets: [
20
- // Targets are the basic building blocks of a package. A target can define a module or a test suite.
21
- // Targets can depend on other targets in this package, and on products in packages this package depends on .
16
+ // Targets are the basic building blocks of a package, defining a module or a test suite.
17
+ // Targets can depend on other targets in this package and products from dependencies .
22
18
. target(
23
- name: " importformatter " ,
24
- dependencies: [ ]
19
+ name: " importformatter "
25
20
) ,
26
21
. testTarget(
27
22
name: " importformatterTests " ,
Original file line number Diff line number Diff line change 1
- // swift-tools-version: 5.7
1
+ // swift-tools-version: 5.9
2
2
// The swift-tools-version declares the minimum version of Swift required to build this package.
3
3
4
4
import PackageDescription
5
5
6
6
let package = Package (
7
7
name: " importformatter " ,
8
8
products: [
9
- // Products define the executables and libraries a package produces, and make them visible to other packages.
9
+ // Products define the executables and libraries a package produces, making them visible to other packages.
10
10
. executable(
11
11
name: " importformatter " ,
12
12
targets: [ " importformatter " ]
13
13
)
14
14
] ,
15
- dependencies: [
16
- // Dependencies declare other packages that this package depends on.
17
- // .package(url: /* package url */, from: "1.0.0"),
18
- ] ,
19
15
targets: [
20
- // Targets are the basic building blocks of a package. A target can define a module or a test suite.
21
- // Targets can depend on other targets in this package, and on products in packages this package depends on .
16
+ // Targets are the basic building blocks of a package, defining a module or a test suite.
17
+ // Targets can depend on other targets in this package and products from dependencies .
22
18
. executableTarget(
23
- name: " importformatter " ,
24
- dependencies: [ ]
19
+ name: " importformatter "
25
20
) ,
26
21
. testTarget(
27
22
name: " importformatterTests " ,
Original file line number Diff line number Diff line change 1
- // swift-tools-version: 5.7
1
+ // swift-tools-version: 5.9
2
2
// The swift-tools-version declares the minimum version of Swift required to build this package.
3
3
4
4
import PackageDescription
5
5
6
6
let package = Package (
7
7
name: " importformatter " ,
8
8
products: [
9
- // Products define the executables and libraries a package produces, and make them visible to other packages.
9
+ // Products define the executables and libraries a package produces, making them visible to other packages.
10
10
. executable(
11
11
name: " importformatter " ,
12
12
targets: [ " importformatter " ]
@@ -17,11 +17,10 @@ let package = Package(
17
17
. package ( url: " https://github.com/apple/swift-syntax.git " , branch: " main " )
18
18
] ,
19
19
targets: [
20
- // Targets are the basic building blocks of a package. A target can define a module or a test suite.
21
- // Targets can depend on other targets in this package, and on products in packages this package depends on .
20
+ // Targets are the basic building blocks of a package, defining a module or a test suite.
21
+ // Targets can depend on other targets in this package and products from dependencies .
22
22
. executableTarget(
23
- name: " importformatter " ,
24
- dependencies: [ ]
23
+ name: " importformatter "
25
24
) ,
26
25
. testTarget(
27
26
name: " importformatterTests " ,
Original file line number Diff line number Diff line change 1
- // swift-tools-version: 5.7
1
+ // swift-tools-version: 5.9
2
2
// The swift-tools-version declares the minimum version of Swift required to build this package.
3
3
4
4
import PackageDescription
5
5
6
6
let package = Package (
7
7
name: " importformatter " ,
8
8
products: [
9
- // Products define the executables and libraries a package produces, and make them visible to other packages.
9
+ // Products define the executables and libraries a package produces, making them visible to other packages.
10
10
. executable(
11
11
name: " importformatter " ,
12
12
targets: [ " importformatter " ]
@@ -17,8 +17,8 @@ let package = Package(
17
17
. package ( url: " https://github.com/apple/swift-syntax.git " , branch: " main " )
18
18
] ,
19
19
targets: [
20
- // Targets are the basic building blocks of a package. A target can define a module or a test suite.
21
- // Targets can depend on other targets in this package, and on products in packages this package depends on .
20
+ // Targets are the basic building blocks of a package, defining a module or a test suite.
21
+ // Targets can depend on other targets in this package and products from dependencies .
22
22
. executableTarget(
23
23
name: " importformatter " ,
24
24
dependencies: [
Original file line number Diff line number Diff line change 1
- // swift-tools-version: 5.7
1
+ // swift-tools-version: 5.9
2
2
// The swift-tools-version declares the minimum version of Swift required to build this package.
3
3
4
4
import PackageDescription
@@ -9,7 +9,7 @@ let package = Package(
9
9
. macOS( . v10_15)
10
10
] ,
11
11
products: [
12
- // Products define the executables and libraries a package produces, and make them visible to other packages.
12
+ // Products define the executables and libraries a package produces, making them visible to other packages.
13
13
. executable(
14
14
name: " importformatter " ,
15
15
targets: [ " importformatter " ]
@@ -20,8 +20,8 @@ let package = Package(
20
20
. package ( url: " https://github.com/apple/swift-syntax.git " , branch: " main " )
21
21
] ,
22
22
targets: [
23
- // Targets are the basic building blocks of a package. A target can define a module or a test suite.
24
- // Targets can depend on other targets in this package, and on products in packages this package depends on .
23
+ // Targets are the basic building blocks of a package, defining a module or a test suite.
24
+ // Targets can depend on other targets in this package and products from dependencies .
25
25
. executableTarget(
26
26
name: " importformatter " ,
27
27
dependencies: [
Original file line number Diff line number Diff line change 51
51
}
52
52
53
53
@Steps {
54
+ @Step {
55
+ Open the `Package.swift` file created in the previous section.
56
+
57
+ @Code(name: "Package.swift", file: Package.step2.swift)
58
+ }
59
+
54
60
@Step {
55
61
Add the `swift-syntax` package to the dependencies section of your
56
62
`Package.swift` file.
You can’t perform that action at this time.
0 commit comments