Skip to content

Commit eee5ae6

Browse files
Don't yield empty iteration scopes
1 parent 5aed28f commit eee5ae6

File tree

43 files changed

+74
-351
lines changed

Some content is hidden

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

43 files changed

+74
-351
lines changed

data/fixtures/scopes/c/name.argument.formal.iteration2.scope

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,3 @@ void aaa(int bbb, int ccc) {}
1111
[#2 Domain] = 0:9-0:25
1212
>----------------<
1313
0| void aaa(int bbb, int ccc) {}
14-
15-
16-
[#3 Range] =
17-
[#3 Domain] = 0:28-0:28
18-
><
19-
0| void aaa(int bbb, int ccc) {}

data/fixtures/scopes/c/name.iteration.block2.scope

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ void foo() { }
88

99

1010
[#2 Range] =
11-
[#2 Domain] = 0:9-0:9
12-
><
13-
0| void foo() { }
14-
15-
16-
[#3 Range] =
17-
[#3 Domain] = 0:12-0:13
11+
[#2 Domain] = 0:12-0:13
1812
>-<
1913
0| void foo() { }

data/fixtures/scopes/cpp/name.argument.formal.constructor.iteration.scope

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,3 @@ class MyClass {
2525
[#3 Domain] = 1:12-1:32
2626
>--------------------<
2727
1| MyClass(int aaa, int bbb = 2) {}
28-
29-
30-
[#4 Range] =
31-
[#4 Domain] = 1:35-1:35
32-
><
33-
1| MyClass(int aaa, int bbb = 2) {}

data/fixtures/scopes/cpp/name.argument.formal.iteration.scope

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,3 @@ void aaa(int bbb = 0, int ccc = 0) {}
1111
[#2 Domain] = 0:9-0:33
1212
>------------------------<
1313
0| void aaa(int bbb = 0, int ccc = 0) {}
14-
15-
16-
[#3 Range] =
17-
[#3 Domain] = 0:36-0:36
18-
><
19-
0| void aaa(int bbb = 0, int ccc = 0) {}

data/fixtures/scopes/cpp/name.argument.formal.method.iteration.scope

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,3 @@ class MyClass {
2525
[#3 Domain] = 1:13-1:33
2626
>--------------------<
2727
1| void foo(int aaa, int bbb = 2) {}
28-
29-
30-
[#4 Range] =
31-
[#4 Domain] = 1:36-1:36
32-
><
33-
1| void foo(int aaa, int bbb = 2) {}

data/fixtures/scopes/csharp/name.argument.formal.constructor.iteration.scope

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,3 @@ class MyClass {
2525
[#3 Domain] = 1:12-1:28
2626
>----------------<
2727
1| MyClass(int foo, int bar) {}
28-
29-
30-
[#4 Range] =
31-
[#4 Domain] = 1:31-1:31
32-
><
33-
1| MyClass(int foo, int bar) {}

data/fixtures/scopes/csharp/name.argument.formal.iteration.scope

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,3 @@ void myFunk(String name, int value) {}
1111
[#2 Domain] = 0:12-0:34
1212
>----------------------<
1313
0| void myFunk(String name, int value) {}
14-
15-
16-
[#3 Range] =
17-
[#3 Domain] = 0:37-0:37
18-
><
19-
0| void myFunk(String name, int value) {}

data/fixtures/scopes/csharp/name.argument.formal.method.iteration.scope

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,3 @@ class MyClass {
2525
[#3 Domain] = 1:14-1:30
2626
>----------------<
2727
1| void funk(int foo, int bar) {}
28-
29-
30-
[#4 Range] =
31-
[#4 Domain] = 1:33-1:33
32-
><
33-
1| void funk(int foo, int bar) {}

data/fixtures/scopes/csharp/name.iteration.block2.scope

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ void MyFunk() { }
88

99

1010
[#2 Range] =
11-
[#2 Domain] = 0:12-0:12
12-
><
13-
0| void MyFunk() { }
14-
15-
16-
[#3 Range] =
17-
[#3 Domain] = 0:15-0:16
11+
[#2 Domain] = 0:15-0:16
1812
>-<
1913
0| void MyFunk() { }

data/fixtures/scopes/csharp/name.iteration.document.scope

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,10 @@ class MyClass {}
33

44
---
55

6-
[#1 Range] =
7-
[#1 Domain] = 0:0-2:0
6+
[Range] =
7+
[Domain] = 0:0-2:0
88
>
99
0|
1010
1| class MyClass {}
1111
2|
1212
<
13-
14-
15-
[#2 Range] =
16-
[#2 Domain] = 1:15-1:15
17-
><
18-
1| class MyClass {}

0 commit comments

Comments
 (0)