Skip to content

Commit af96c05

Browse files
committed
minor changes
1 parent 218e71c commit af96c05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/SwiftParserDiagnostics/ParseDiagnosticsGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import SwiftParser
1717
fileprivate func getTokens(between first: TokenSyntax, and second: TokenSyntax) -> [TokenSyntax] {
1818
var tokens: [TokenSyntax] = []
1919
var currentToken = first
20-
20+
2121
while currentToken != second {
2222
tokens.append(currentToken)
2323
guard let nextToken = currentToken.nextToken(viewMode: .sourceAccurate) else {

Tests/SwiftParserTest/translated/AvailabilityQueryUnavailabilityTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,11 @@ final class AvailabilityQueryUnavailabilityTests: XCTestCase {
441441
}
442442
""",
443443
diagnostics: [
444-
DiagnosticSpec(message: "#available cannot be used as an expression, did you mean to use '#unavailable'?", fixIts: ["replace '#available(*) == false' with '#unavailable(*)'"]),
444+
DiagnosticSpec(message: "#available cannot be used as an expression, did you mean to use '#unavailable'?", fixIts: ["replace '#available(*) == false' with '#unavailable(*)'"])
445445
]
446446
)
447447
}
448-
448+
449449
func testAvailabilityQueryUnavailability34b() {
450450
assertParse(
451451
"""

0 commit comments

Comments
 (0)