Skip to content

Commit 1c44098

Browse files
Serialize scope fixtures: Group removal and domain (#3103)
1 parent e69d649 commit 1c44098

36 files changed

+110
-431
lines changed

data/fixtures/scopes/c/interior/interior.switchCase.scope

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,7 @@ switch (foo) {
2222
8| break;
2323
--------------<
2424

25-
[#1 Removal] = 0:14-9:0
26-
>
27-
0| switch (foo) {
28-
1| case 0:
29-
2| bar;
30-
3| break;
31-
4| case 1: {
32-
5| break;
33-
6| }
34-
7| default:
35-
8| break;
36-
9| }
37-
<
38-
25+
[#1 Removal] =
3926
[#1 Domain] = 0:14-9:0
4027
>
4128
0| switch (foo) {
@@ -59,13 +46,7 @@ switch (foo) {
5946
3| break;
6047
--------------<
6148

62-
[#2 Removal] = 1:11-3:14
63-
>
64-
1| case 0:
65-
2| bar;
66-
3| break;
67-
--------------<
68-
49+
[#2 Removal] =
6950
[#2 Domain] = 1:11-3:14
7051
>
7152
1| case 0:
@@ -80,13 +61,7 @@ switch (foo) {
8061
>------<
8162
5| break;
8263

83-
[#3 Removal] = 4:13-6:4
84-
>
85-
4| case 1: {
86-
5| break;
87-
6| }
88-
----<
89-
64+
[#3 Removal] =
9065
[#3 Domain] = 4:13-6:4
9166
>
9267
4| case 1: {
@@ -101,12 +76,7 @@ switch (foo) {
10176
>------<
10277
8| break;
10378

104-
[#4 Removal] = 7:12-8:14
105-
>
106-
7| default:
107-
8| break;
108-
--------------<
109-
79+
[#4 Removal] =
11080
[#4 Domain] = 7:12-8:14
11181
>
11282
7| default:

data/fixtures/scopes/cpp/interior/interior.constructor.scope

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ class Foo {
77
>---------<
88
1| Foo() { }
99

10-
[#1 Removal] = 0:11-2:0
11-
>
12-
0| class Foo {
13-
1| Foo() { }
14-
2| }
15-
<
16-
10+
[#1 Removal] =
1711
[#1 Domain] = 0:11-2:0
1812
>
1913
0| class Foo {

data/fixtures/scopes/cpp/interior/interior.method.scope

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ class Foo {
77
>--------------<
88
1| void bar() { }
99

10-
[#1 Removal] = 0:11-2:0
11-
>
12-
0| class Foo {
13-
1| void bar() { }
14-
2| }
15-
<
16-
10+
[#1 Removal] =
1711
[#1 Domain] = 0:11-2:0
1812
>
1913
0| class Foo {

data/fixtures/scopes/csharp/interior/interior.constructor.scope

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ class Foo {
77
>----------------<
88
1| public Foo() { }
99

10-
[#1 Removal] = 0:11-2:0
11-
>
12-
0| class Foo {
13-
1| public Foo() { }
14-
2| }
15-
<
16-
10+
[#1 Removal] =
1711
[#1 Domain] = 0:11-2:0
1812
>
1913
0| class Foo {

data/fixtures/scopes/csharp/interior/interior.lambda.scope

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
>----<
66
0| () => { foo; };
77

8-
[Removal] = 0:7-0:13
9-
>------<
10-
0| () => { foo; };
11-
8+
[Removal] =
129
[Domain] = 0:7-0:13
1310
>------<
1411
0| () => { foo; };

data/fixtures/scopes/csharp/interior/interior.method.scope

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ class Foo {
77
>---------------------<
88
1| public void Bar() { }
99

10-
[#1 Removal] = 0:11-2:0
11-
>
12-
0| class Foo {
13-
1| public void Bar() { }
14-
2| }
15-
<
16-
10+
[#1 Removal] =
1711
[#1 Domain] = 0:11-2:0
1812
>
1913
0| class Foo {

data/fixtures/scopes/csharp/interior/interior.switchCase.scope

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,7 @@ switch (foo) {
2222
8| break;
2323
--------------<
2424

25-
[#1 Removal] = 0:14-9:0
26-
>
27-
0| switch (foo) {
28-
1| case 0:
29-
2| bar;
30-
3| break;
31-
4| case 1: {
32-
5| break;
33-
6| }
34-
7| default:
35-
8| break;
36-
9| }
37-
<
38-
25+
[#1 Removal] =
3926
[#1 Domain] = 0:14-9:0
4027
>
4128
0| switch (foo) {
@@ -59,13 +46,7 @@ switch (foo) {
5946
3| break;
6047
--------------<
6148

62-
[#2 Removal] = 1:11-3:14
63-
>
64-
1| case 0:
65-
2| bar;
66-
3| break;
67-
--------------<
68-
49+
[#2 Removal] =
6950
[#2 Domain] = 1:11-3:14
7051
>
7152
1| case 0:
@@ -80,13 +61,7 @@ switch (foo) {
8061
>------<
8162
5| break;
8263

83-
[#3 Removal] = 4:13-6:4
84-
>
85-
4| case 1: {
86-
5| break;
87-
6| }
88-
----<
89-
64+
[#3 Removal] =
9065
[#3 Domain] = 4:13-6:4
9166
>
9267
4| case 1: {
@@ -101,12 +76,7 @@ switch (foo) {
10176
>------<
10277
8| break;
10378

104-
[#4 Removal] = 7:12-8:14
105-
>
106-
7| default:
107-
8| break;
108-
--------------<
109-
79+
[#4 Removal] =
11080
[#4 Domain] = 7:12-8:14
11181
>
11282
7| default:

data/fixtures/scopes/java/interior/interior.constructor.scope

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ public class Foo {
77
>----------------<
88
1| public Foo() { }
99

10-
[#1 Removal] = 0:18-2:0
11-
>
12-
0| public class Foo {
13-
1| public Foo() { }
14-
2| }
15-
<
16-
10+
[#1 Removal] =
1711
[#1 Domain] = 0:18-2:0
1812
>
1913
0| public class Foo {

data/fixtures/scopes/java/interior/interior.method.scope

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ public class Foo {
77
>---------------------<
88
1| public void bar() { }
99

10-
[#1 Removal] = 0:18-2:0
11-
>
12-
0| public class Foo {
13-
1| public void bar() { }
14-
2| }
15-
<
16-
10+
[#1 Removal] =
1711
[#1 Domain] = 0:18-2:0
1812
>
1913
0| public class Foo {

data/fixtures/scopes/java/interior/interior.static.scope

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ class Foo {
77
>----------<
88
1| static { }
99

10-
[#1 Removal] = 0:11-2:0
11-
>
12-
0| class Foo {
13-
1| static { }
14-
2| }
15-
<
16-
10+
[#1 Removal] =
1711
[#1 Domain] = 0:11-2:0
1812
>
1913
0| class Foo {

0 commit comments

Comments
 (0)