Skip to content

Commit 17a30c3

Browse files
Add missing scope facets to Rust (#3126)
1 parent bd78cc3 commit 17a30c3

File tree

172 files changed

+3871
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+3871
-57
lines changed

data/fixtures/recorded/languages/rust/clearValue4.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ command:
1313
initialState:
1414
documentContents: |-
1515
fn foo() -> i32 {
16-
return 3
16+
return 3;
1717
}
1818
selections:
1919
- anchor: {line: 1, character: 11}
@@ -22,7 +22,7 @@ initialState:
2222
finalState:
2323
documentContents: |-
2424
fn foo() -> i32 {
25-
return
25+
return ;
2626
}
2727
selections:
2828
- anchor: {line: 1, character: 11}

data/fixtures/recorded/languages/rust/clearValue5.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ command:
1313
initialState:
1414
documentContents: |-
1515
fn foo() -> i32 {
16-
return 3
16+
return 3;
1717
}
1818
selections:
1919
- anchor: {line: 1, character: 4}
@@ -22,7 +22,7 @@ initialState:
2222
finalState:
2323
documentContents: |-
2424
fn foo() -> i32 {
25-
return
25+
return ;
2626
}
2727
selections:
2828
- anchor: {line: 1, character: 11}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
|| {}
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:5
7+
>-----<
8+
0| || {}
9+
10+
[Insertion delimiter] = "\n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
|x| x * x;
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:9
7+
>---------<
8+
0| |x| x * x;
9+
10+
[Insertion delimiter] = "\n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
foo(aaa, bbb);
2+
---
3+
4+
[Content] = 0:4-0:12
5+
>--------<
6+
0| foo(aaa, bbb);
7+
8+
[Domain] = 0:0-0:13
9+
>-------------<
10+
0| foo(aaa, bbb);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
foo.bar(aaa, bbb);
2+
---
3+
4+
[Content] = 0:8-0:16
5+
>--------<
6+
0| foo.bar(aaa, bbb);
7+
8+
[Domain] = 0:0-0:17
9+
>-----------------<
10+
0| foo.bar(aaa, bbb);
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
foo.bar(
2+
aaa,
3+
bbb
4+
);
5+
---
6+
7+
[#1 Content] =
8+
[#1 Domain] = 1:4-1:7
9+
>---<
10+
1| aaa,
11+
12+
[#1 Removal] = 1:4-2:4
13+
>----
14+
1| aaa,
15+
2| bbb
16+
----<
17+
18+
[#1 Trailing delimiter] = 1:7-2:4
19+
>-
20+
1| aaa,
21+
2| bbb
22+
----<
23+
24+
[#1 Insertion delimiter] = ",\n"
25+
26+
27+
[#2 Content] =
28+
[#2 Domain] = 2:4-2:7
29+
>---<
30+
2| bbb
31+
32+
[#2 Removal] = 1:7-2:7
33+
>-
34+
1| aaa,
35+
2| bbb
36+
-------<
37+
38+
[#2 Leading delimiter] = 1:7-2:4
39+
>-
40+
1| aaa,
41+
2| bbb
42+
----<
43+
44+
[#2 Insertion delimiter] = ",\n"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
foo.bar(aaa, bbb);
2+
---
3+
4+
[#1 Content] =
5+
[#1 Domain] = 0:8-0:11
6+
>---<
7+
0| foo.bar(aaa, bbb);
8+
9+
[#1 Removal] = 0:8-0:13
10+
>-----<
11+
0| foo.bar(aaa, bbb);
12+
13+
[#1 Trailing delimiter] = 0:11-0:13
14+
>--<
15+
0| foo.bar(aaa, bbb);
16+
17+
[#1 Insertion delimiter] = ", "
18+
19+
20+
[#2 Content] =
21+
[#2 Domain] = 0:13-0:16
22+
>---<
23+
0| foo.bar(aaa, bbb);
24+
25+
[#2 Removal] = 0:11-0:16
26+
>-----<
27+
0| foo.bar(aaa, bbb);
28+
29+
[#2 Leading delimiter] = 0:11-0:13
30+
>--<
31+
0| foo.bar(aaa, bbb);
32+
33+
[#2 Insertion delimiter] = ", "
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
foo(
2+
aaa,
3+
bbb
4+
);
5+
---
6+
7+
[#1 Content] =
8+
[#1 Domain] = 1:4-1:7
9+
>---<
10+
1| aaa,
11+
12+
[#1 Removal] = 1:4-2:4
13+
>----
14+
1| aaa,
15+
2| bbb
16+
----<
17+
18+
[#1 Trailing delimiter] = 1:7-2:4
19+
>-
20+
1| aaa,
21+
2| bbb
22+
----<
23+
24+
[#1 Insertion delimiter] = ",\n"
25+
26+
27+
[#2 Content] =
28+
[#2 Domain] = 2:4-2:7
29+
>---<
30+
2| bbb
31+
32+
[#2 Removal] = 1:7-2:7
33+
>-
34+
1| aaa,
35+
2| bbb
36+
-------<
37+
38+
[#2 Leading delimiter] = 1:7-2:4
39+
>-
40+
1| aaa,
41+
2| bbb
42+
----<
43+
44+
[#2 Insertion delimiter] = ",\n"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
foo(aaa, bbb);
2+
---
3+
4+
[#1 Content] =
5+
[#1 Domain] = 0:4-0:7
6+
>---<
7+
0| foo(aaa, bbb);
8+
9+
[#1 Removal] = 0:4-0:9
10+
>-----<
11+
0| foo(aaa, bbb);
12+
13+
[#1 Trailing delimiter] = 0:7-0:9
14+
>--<
15+
0| foo(aaa, bbb);
16+
17+
[#1 Insertion delimiter] = ", "
18+
19+
20+
[#2 Content] =
21+
[#2 Domain] = 0:9-0:12
22+
>---<
23+
0| foo(aaa, bbb);
24+
25+
[#2 Removal] = 0:7-0:12
26+
>-----<
27+
0| foo(aaa, bbb);
28+
29+
[#2 Leading delimiter] = 0:7-0:9
30+
>--<
31+
0| foo(aaa, bbb);
32+
33+
[#2 Insertion delimiter] = ", "

0 commit comments

Comments
 (0)