Skip to content

Commit 98be28b

Browse files
committed
cleanup
1 parent ed66e85 commit 98be28b

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

Tests/SwiftParserTest/Assertions.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -292,16 +292,6 @@ struct DiagnosticSpec {
292292
self.file = file
293293
self.line = line
294294
}
295-
296-
static func consecutiveStatementsOnALineDiagnosticSpec(
297-
locationMarker: String = "1️⃣"
298-
) -> Self {
299-
DiagnosticSpec(
300-
locationMarker: locationMarker,
301-
message: "consecutive statements on a line must be separated by newline or ';'",
302-
fixIts: ["insert newline", "insert ';'"]
303-
)
304-
}
305295
}
306296

307297
/// Assert that `location` is the same as that of `locationMarker` in `tree`.

Tests/SwiftParserTest/translated/EscapedIdentifiersTests.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ final class EscapedIdentifiersTests: ParserTestCase {
209209
""",
210210
diagnostics: [
211211
DiagnosticSpec(locationMarker: "1️⃣", message: "unexpected code '`multiline is' in source file"),
212-
.consecutiveStatementsOnALineDiagnosticSpec(locationMarker: "2️⃣"),
212+
DiagnosticSpec(
213+
locationMarker: "2️⃣",
214+
message: "consecutive statements on a line must be separated by newline or ';'",
215+
fixIts: ["insert newline", "insert ';'"]
216+
),
213217
DiagnosticSpec(locationMarker: "3️⃣", message: "unexpected code '` = 5' in source file"),
214218
],
215219
fixedSource: """

0 commit comments

Comments
 (0)