Skip to content

Commit a525b59

Browse files
Trim argument list content range (#2967)
Fixes #2943
1 parent 5aed28f commit a525b59

File tree

86 files changed

+1252
-169
lines changed

Some content is hidden

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

86 files changed

+1252
-169
lines changed

data/fixtures/scopes/c/argumentList.actual.method.multiLine.scope

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ foo.bar(
44
);
55
---
66

7-
[Content] =
7+
[Content] = 1:4-2:11
8+
>--------
9+
1| int aaa,
10+
2| int bbb
11+
-----------<
12+
813
[Removal] = 0:8-3:0
914
>
1015
0| foo.bar(
@@ -13,6 +18,10 @@ foo.bar(
1318
3| );
1419
<
1520

21+
[Leading delimiter] = 1:0-1:4
22+
>----<
23+
1| int aaa,
24+
1625
[Domain] = 0:0-3:1
1726
>--------
1827
0| foo.bar(

data/fixtures/scopes/c/argumentList.actual.multiLine.scope

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ foo(
44
);
55
---
66

7-
[Content] =
7+
[Content] = 1:4-2:7
8+
>----
9+
1| aaa,
10+
2| bbb
11+
-------<
12+
813
[Removal] = 0:4-3:0
914
>
1015
0| foo(
@@ -13,6 +18,10 @@ foo(
1318
3| );
1419
<
1520

21+
[Leading delimiter] = 1:0-1:4
22+
>----<
23+
1| aaa,
24+
1625
[Domain] = 0:0-3:1
1726
>----
1827
0| foo(

data/fixtures/scopes/c/argumentList.formal.multiLine.scope

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ void foo(
44
) {}
55
---
66

7-
[Content] =
7+
[Content] = 1:4-2:11
8+
>--------
9+
1| int aaa,
10+
2| int bbb
11+
-----------<
12+
813
[Removal] = 0:9-3:0
914
>
1015
0| void foo(
@@ -13,6 +18,10 @@ void foo(
1318
3| ) {}
1419
<
1520

21+
[Leading delimiter] = 1:0-1:4
22+
>----<
23+
1| int aaa,
24+
1625
[Domain] = 0:0-3:4
1726
>---------
1827
0| void foo(

data/fixtures/scopes/cpp/argumentList.actual.constructor.multiLine.scope

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ new Foo(
44
);
55
---
66

7-
[Content] =
7+
[Content] = 1:4-2:11
8+
>--------
9+
1| int aaa,
10+
2| int bbb
11+
-----------<
12+
813
[Removal] = 0:8-3:0
914
>
1015
0| new Foo(
@@ -13,6 +18,10 @@ new Foo(
1318
3| );
1419
<
1520

21+
[Leading delimiter] = 1:0-1:4
22+
>----<
23+
1| int aaa,
24+
1625
[Domain] = 0:0-3:1
1726
>--------
1827
0| new Foo(

data/fixtures/scopes/cpp/argumentList.formal.constructor.multiLine.scope

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ class MyClass {
66
}
77
---
88

9-
[Content] =
9+
[Content] = 2:8-3:15
10+
>--------
11+
2| int aaa,
12+
3| int bbb
13+
---------------<
14+
1015
[Removal] = 1:12-4:4
1116
>
1217
1| MyClass(
@@ -15,6 +20,10 @@ class MyClass {
1520
4| ) {}
1621
----<
1722

23+
[Leading delimiter] = 2:0-2:8
24+
>--------<
25+
2| int aaa,
26+
1827
[Domain] = 1:4-4:8
1928
>--------
2029
1| MyClass(

data/fixtures/scopes/cpp/argumentList.formal.lambda.multiLine.scope

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
) {}
55
---
66

7-
[Content] =
7+
[Content] = 1:4-2:11
8+
>--------
9+
1| int aaa,
10+
2| int bbb
11+
-----------<
12+
813
[Removal] = 0:3-3:0
914
>
1015
0| [](
@@ -13,6 +18,10 @@
1318
3| ) {}
1419
<
1520

21+
[Leading delimiter] = 1:0-1:4
22+
>----<
23+
1| int aaa,
24+
1625
[Domain] = 0:0-3:4
1726
>---
1827
0| [](

data/fixtures/scopes/cpp/argumentList.formal.method.multiLine.scope

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ class MyClass {
66
}
77
---
88

9-
[Content] =
9+
[Content] = 2:8-3:15
10+
>--------
11+
2| int aaa,
12+
3| int bbb
13+
---------------<
14+
1015
[Removal] = 1:13-4:4
1116
>
1217
1| void foo(
@@ -15,6 +20,10 @@ class MyClass {
1520
4| ) {}
1621
----<
1722

23+
[Leading delimiter] = 2:0-2:8
24+
>--------<
25+
2| int aaa,
26+
1827
[Domain] = 1:4-4:8
1928
>---------
2029
1| void foo(

data/fixtures/scopes/csharp/argumentList/argumentList.actual.constructor.multiLine.scope

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ new Foo(
44
);
55
---
66

7-
[Content] =
7+
[Content] = 1:4-2:7
8+
>----
9+
1| aaa,
10+
2| bbb
11+
-------<
12+
813
[Removal] = 0:8-3:0
914
>
1015
0| new Foo(
@@ -13,6 +18,10 @@ new Foo(
1318
3| );
1419
<
1520

21+
[Leading delimiter] = 1:0-1:4
22+
>----<
23+
1| aaa,
24+
1625
[Domain] = 0:0-3:1
1726
>--------
1827
0| new Foo(

data/fixtures/scopes/csharp/argumentList/argumentList.actual.method.multiLine.scope

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ foo.bar(
44
);
55
---
66

7-
[Content] =
7+
[Content] = 1:4-2:7
8+
>----
9+
1| aaa,
10+
2| bbb
11+
-------<
12+
813
[Removal] = 0:8-3:0
914
>
1015
0| foo.bar(
@@ -13,6 +18,10 @@ foo.bar(
1318
3| );
1419
<
1520

21+
[Leading delimiter] = 1:0-1:4
22+
>----<
23+
1| aaa,
24+
1625
[Domain] = 0:0-3:1
1726
>--------
1827
0| foo.bar(

data/fixtures/scopes/csharp/argumentList/argumentList.actual.multiLine.scope

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ foo(
44
);
55
---
66

7-
[Content] =
7+
[Content] = 1:4-2:7
8+
>----
9+
1| aaa,
10+
2| bbb
11+
-------<
12+
813
[Removal] = 0:4-3:0
914
>
1015
0| foo(
@@ -13,6 +18,10 @@ foo(
1318
3| );
1419
<
1520

21+
[Leading delimiter] = 1:0-1:4
22+
>----<
23+
1| aaa,
24+
1625
[Domain] = 0:0-3:1
1726
>----
1827
0| foo(

0 commit comments

Comments
 (0)