Skip to content

Commit fba1ed2

Browse files
committed
[SourceKit] Update a test case for recent diagnostics change
1 parent 1584602 commit fba1ed2

File tree

1 file changed

+13
-34
lines changed

1 file changed

+13
-34
lines changed

test/SourceKit/CursorInfo/rdar_18677108-2.swift.response

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,21 @@
11
[
22
{
3-
key.line: 6,
4-
key.column: 2,
5-
key.filepath: rdar_18677108-2-a.swift,
6-
key.severity: source.diagnostic.severity.error,
7-
key.description: "expected ',' separator",
8-
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
9-
key.fixits: [
10-
{
11-
key.offset: 184,
12-
key.length: 0,
13-
key.sourcetext: ","
14-
}
15-
]
16-
},
17-
{
18-
key.line: 6,
19-
key.column: 2,
3+
key.line: 7,
4+
key.column: 1,
205
key.filepath: rdar_18677108-2-a.swift,
216
key.severity: source.diagnostic.severity.error,
22-
key.description: "expected ',' separator",
7+
key.description: "expected ')' in expression list",
238
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
24-
key.fixits: [
9+
key.diagnostics: [
2510
{
26-
key.offset: 184,
27-
key.length: 0,
28-
key.sourcetext: ","
11+
key.line: 5,
12+
key.column: 46,
13+
key.filepath: rdar_18677108-2-a.swift,
14+
key.severity: source.diagnostic.severity.note,
15+
key.description: "to match this opening '('"
2916
}
3017
]
3118
},
32-
{
33-
key.line: 7,
34-
key.column: 1,
35-
key.filepath: rdar_18677108-2-a.swift,
36-
key.severity: source.diagnostic.severity.error,
37-
key.description: "expected expression in list of expressions",
38-
key.diagnostic_stage: source.diagnostic.stage.swift.parse
39-
},
4019
{
4120
key.line: 7,
4221
key.column: 1,
@@ -59,15 +38,15 @@
5938
key.column: 1,
6039
key.filepath: rdar_18677108-2-a.swift,
6140
key.severity: source.diagnostic.severity.error,
62-
key.description: "expected declaration",
41+
key.description: "expected '}' in class",
6342
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
6443
key.diagnostics: [
6544
{
66-
key.line: 1,
67-
key.column: 7,
45+
key.line: 2,
46+
key.column: 1,
6847
key.filepath: rdar_18677108-2-a.swift,
6948
key.severity: source.diagnostic.severity.note,
70-
key.description: "in declaration of 'CameraController'"
49+
key.description: "to match this opening '{'"
7150
}
7251
]
7352
}

0 commit comments

Comments
 (0)