File tree 3 files changed +13
-6
lines changed
Sources/_OpenAPIGeneratorCore/Extensions
Tests/OpenAPIGeneratorReferenceTests
3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,13 @@ let package = Package(
55
55
// Generate Swift code
56
56
. package (
57
57
url: " https://github.com/apple/swift-syntax.git " ,
58
- from : " 508.0.1 "
58
+ " 508.0.1 " ..< " 510.0.0 "
59
59
) ,
60
60
61
61
// Format Swift code
62
62
. package (
63
63
url: " https://github.com/apple/swift-format.git " ,
64
- from : " 508.0.1 "
64
+ " 508.0.1 " ..< " 510.0.0 "
65
65
) ,
66
66
67
67
// General algorithms
Original file line number Diff line number Diff line change @@ -39,10 +39,15 @@ extension String {
39
39
assumingFileURL: nil ,
40
40
to: & formattedString
41
41
) { diagnostic, sourceLocation in
42
+ #if canImport(SwiftSyntax509)
43
+ let location = " \( sourceLocation. line) : \( sourceLocation. column) "
44
+ #else
45
+ let location = " \( sourceLocation. debugDescription) "
46
+ #endif
42
47
print (
43
48
"""
44
49
===
45
- Formatting the following code produced diagnostic at location \( sourceLocation . debugDescription ) (see end):
50
+ Formatting the following code produced diagnostic at location \( location ) (see end):
46
51
---
47
52
\( self . withLineNumberPrefixes)
48
53
---
Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ class FileBasedReferenceTests: XCTestCase {
44
44
#endif
45
45
}
46
46
47
- func testPetstore( ) throws {
48
- try _test ( referenceProject: . init( name: . petstore) )
49
- }
47
+ #if !canImport(SwiftSyntax509)
48
+ func testPetstore( ) throws {
49
+ try _test ( referenceProject: . init( name: . petstore) )
50
+ }
51
+ #endif
50
52
51
53
// MARK: - Private
52
54
You can’t perform that action at this time.
0 commit comments