This repository was archived by the owner on Oct 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,34 @@ let package = Package(
90
90
name : " SwiftSemantics" ,
91
91
url : " https://github.com/SwiftDocOrg/SwiftSemantics" ,
92
92
from : " 0.3.0"
93
- ),
94
- .package (
95
- name : " SwiftSyntax" ,
96
- url : " https://github.com/apple/swift-syntax.git" ,
97
- from : " 0.50300.0"
98
- ),
93
+ )
99
94
]
100
95
)
101
96
```
102
97
103
- Then run the ` swift build ` command to build your project.
98
+ If your project has a direct dependency ` SwiftSyntax ` ,
99
+ use the declaration below that corresponds to your Swift language version:
100
+
101
+ ``` swift
102
+ // Swift 5.2
103
+ .package (url : " https://github.com/apple/swift-syntax.git" ,
104
+ .exact (" 0.50200.0" )),
105
+
106
+ // Swift 5.3
107
+ .package (name : " SwiftSyntax" ,
108
+ url : " https://github.com/apple/swift-syntax.git" ,
109
+ .exact (" 0.50300.0" )),
110
+
111
+ // Swift 5.4
112
+ .package (name : " SwiftSyntax" ,
113
+ url : " https://github.com/apple/swift-syntax.git" ,
114
+ .revision (" release/5.4" )),
115
+
116
+ // Swift 5.5
117
+ .package (name : " SwiftSyntax" ,
118
+ url : " https://github.com/apple/swift-syntax.git" ,
119
+ .revision (" 4ae758ab85ed2a5d3e3e8b5050a8ce52179bd102" )),
120
+ ```
104
121
105
122
## Detailed Design
106
123
You can’t perform that action at this time.
0 commit comments