Skip to content

Commit a3ad89a

Browse files
Update scope fixtures
1 parent 4f431ce commit a3ad89a

File tree

4 files changed

+173
-22
lines changed

4 files changed

+173
-22
lines changed

data/fixtures/scopes/java/collectionItem.unenclosed.iteration.scope

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,31 @@ public class MyClass {
33
}
44
---
55

6-
[Range] = 1:11-1:19
6+
[#1 Range] = 1:4-1:20
7+
>----------------<
8+
1| String foo, bar;
9+
10+
[#1 Domain] = 0:22-2:0
11+
>
12+
0| public class MyClass {
13+
1| String foo, bar;
14+
2| }
15+
<
16+
17+
18+
[#2 Range] = 1:4-1:20
19+
>----------------<
20+
1| String foo, bar;
21+
22+
[#2 Domain] = 1:0-1:20
23+
>--------------------<
24+
1| String foo, bar;
25+
26+
27+
[#3 Range] = 1:11-1:19
728
>--------<
829
1| String foo, bar;
930

10-
[Domain] = 1:4-1:20
31+
[#3 Domain] = 1:4-1:20
1132
>----------------<
1233
1| String foo, bar;

data/fixtures/scopes/java/collectionItem.unenclosed.iteration2.scope

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,54 @@ public class MyClass {
55
}
66
---
77

8-
[Range] = 2:15-2:23
8+
[#1 Range] = 1:4-3:5
9+
>----------------------
10+
1| public void myFunk() {
11+
2| String foo, bar;
12+
3| }
13+
-----<
14+
15+
[#1 Domain] = 0:22-4:0
16+
>
17+
0| public class MyClass {
18+
1| public void myFunk() {
19+
2| String foo, bar;
20+
3| }
21+
4| }
22+
<
23+
24+
25+
[#2 Range] =
26+
[#2 Domain] = 1:23-1:23
27+
><
28+
1| public void myFunk() {
29+
30+
31+
[#3 Range] = 2:8-2:24
32+
>----------------<
33+
2| String foo, bar;
34+
35+
[#3 Domain] = 1:26-3:4
36+
>
37+
1| public void myFunk() {
38+
2| String foo, bar;
39+
3| }
40+
----<
41+
42+
43+
[#4 Range] = 2:8-2:24
44+
>----------------<
45+
2| String foo, bar;
46+
47+
[#4 Domain] = 2:0-2:24
48+
>------------------------<
49+
2| String foo, bar;
50+
51+
52+
[#5 Range] = 2:15-2:23
953
>--------<
1054
2| String foo, bar;
1155

12-
[Domain] = 2:8-2:24
56+
[#5 Domain] = 2:8-2:24
1357
>----------------<
1458
2| String foo, bar;

data/fixtures/scopes/java/collectionItem.unenclosed.scope

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,64 @@ public class MyClass {
44
---
55

66
[#1 Content] =
7-
[#1 Domain] = 1:11-1:14
8-
>---<
7+
[#1 Domain] = 1:4-1:14
8+
>----------<
99
1| String foo, bar;
1010

11-
[#1 Removal] = 1:11-1:16
12-
>-----<
11+
[#1 Removal] = 1:4-1:16
12+
>------------<
1313
1| String foo, bar;
1414

1515
[#1 Trailing delimiter] = 1:14-1:16
1616
>--<
1717
1| String foo, bar;
1818

19-
[#1 Insertion delimiter] = ", "
19+
[#1 Insertion delimiter] = ",\n"
2020

2121

2222
[#2 Content] =
23-
[#2 Domain] = 1:16-1:19
23+
[#2 Domain] = 1:11-1:14
24+
>---<
25+
1| String foo, bar;
26+
27+
[#2 Removal] = 1:11-1:16
28+
>-----<
29+
1| String foo, bar;
30+
31+
[#2 Trailing delimiter] = 1:14-1:16
32+
>--<
33+
1| String foo, bar;
34+
35+
[#2 Insertion delimiter] = ", "
36+
37+
38+
[#3 Content] =
39+
[#3 Domain] = 1:16-1:19
2440
>---<
2541
1| String foo, bar;
2642

27-
[#2 Removal] = 1:14-1:19
43+
[#3 Removal] = 1:14-1:19
2844
>-----<
2945
1| String foo, bar;
3046

31-
[#2 Leading delimiter] = 1:14-1:16
47+
[#3 Leading delimiter] = 1:14-1:16
3248
>--<
3349
1| String foo, bar;
3450

35-
[#2 Insertion delimiter] = ", "
51+
[#3 Insertion delimiter] = ", "
52+
53+
54+
[#4 Content] =
55+
[#4 Domain] = 1:16-1:20
56+
>----<
57+
1| String foo, bar;
58+
59+
[#4 Removal] = 1:14-1:20
60+
>------<
61+
1| String foo, bar;
62+
63+
[#4 Leading delimiter] = 1:14-1:16
64+
>--<
65+
1| String foo, bar;
66+
67+
[#4 Insertion delimiter] = ",\n"

data/fixtures/scopes/java/collectionItem.unenclosed2.scope

Lines changed: 63 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,86 @@ public class MyClass {
66
---
77

88
[#1 Content] =
9-
[#1 Domain] = 2:15-2:18
9+
[#1 Domain] = 1:4-3:5
10+
>----------------------
11+
1| public void myFunk() {
12+
2| String foo, bar;
13+
3| }
14+
-----<
15+
16+
[#1 Removal] = 1:0-3:5
17+
>--------------------------
18+
1| public void myFunk() {
19+
2| String foo, bar;
20+
3| }
21+
-----<
22+
23+
[#1 Leading delimiter] = 1:0-1:4
24+
>----<
25+
1| public void myFunk() {
26+
27+
[#1 Insertion delimiter] = ",\n"
28+
29+
30+
[#2 Content] =
31+
[#2 Domain] = 2:8-2:18
32+
>----------<
33+
2| String foo, bar;
34+
35+
[#2 Removal] = 2:8-2:20
36+
>------------<
37+
2| String foo, bar;
38+
39+
[#2 Trailing delimiter] = 2:18-2:20
40+
>--<
41+
2| String foo, bar;
42+
43+
[#2 Insertion delimiter] = ",\n"
44+
45+
46+
[#3 Content] =
47+
[#3 Domain] = 2:15-2:18
1048
>---<
1149
2| String foo, bar;
1250

13-
[#1 Removal] = 2:15-2:20
51+
[#3 Removal] = 2:15-2:20
1452
>-----<
1553
2| String foo, bar;
1654

17-
[#1 Trailing delimiter] = 2:18-2:20
55+
[#3 Trailing delimiter] = 2:18-2:20
1856
>--<
1957
2| String foo, bar;
2058

21-
[#1 Insertion delimiter] = ", "
59+
[#3 Insertion delimiter] = ", "
2260

2361

24-
[#2 Content] =
25-
[#2 Domain] = 2:20-2:23
62+
[#4 Content] =
63+
[#4 Domain] = 2:20-2:23
2664
>---<
2765
2| String foo, bar;
2866

29-
[#2 Removal] = 2:18-2:23
67+
[#4 Removal] = 2:18-2:23
3068
>-----<
3169
2| String foo, bar;
3270

33-
[#2 Leading delimiter] = 2:18-2:20
71+
[#4 Leading delimiter] = 2:18-2:20
72+
>--<
73+
2| String foo, bar;
74+
75+
[#4 Insertion delimiter] = ", "
76+
77+
78+
[#5 Content] =
79+
[#5 Domain] = 2:20-2:24
80+
>----<
81+
2| String foo, bar;
82+
83+
[#5 Removal] = 2:18-2:24
84+
>------<
85+
2| String foo, bar;
86+
87+
[#5 Leading delimiter] = 2:18-2:20
3488
>--<
3589
2| String foo, bar;
3690

37-
[#2 Insertion delimiter] = ", "
91+
[#5 Insertion delimiter] = ",\n"

0 commit comments

Comments
 (0)