Skip to content

Commit d55c744

Browse files
Add more scope facets (#2997)
1 parent ebbbe07 commit d55c744

File tree

74 files changed

+935
-490
lines changed

Some content is hidden

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

74 files changed

+935
-490
lines changed

data/fixtures/scopes/c/branch.loop.scope

Lines changed: 0 additions & 10 deletions
This file was deleted.

data/fixtures/scopes/c/branch.loop2.scope

Lines changed: 0 additions & 10 deletions
This file was deleted.

data/fixtures/scopes/c/branch.loop3.scope

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
true ? 0 : 1;
2+
---
3+
4+
[Range] =
5+
[Domain] = 0:0-0:12
6+
>------------<
7+
0| true ? 0 : 1;
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
namespace NS { }
1+
namespace Foo { }
22
---
33

44
[#1 Content] =
5-
[#1 Removal] = 0:14-0:15
6-
>-<
7-
0| namespace NS { }
5+
[#1 Removal] = 0:15-0:16
6+
>-<
7+
0| namespace Foo { }
88

9-
[#1 Domain] = 0:0-0:16
10-
>----------------<
11-
0| namespace NS { }
9+
[#1 Domain] = 0:0-0:17
10+
>-----------------<
11+
0| namespace Foo { }
1212

1313
[#1 Insertion delimiter] = " "
1414

1515

1616
[#2 Content] =
17-
[#2 Removal] = 0:14-0:15
18-
>-<
19-
0| namespace NS { }
17+
[#2 Removal] = 0:15-0:16
18+
>-<
19+
0| namespace Foo { }
2020

21-
[#2 Domain] = 0:13-0:16
22-
>---<
23-
0| namespace NS { }
21+
[#2 Domain] = 0:14-0:17
22+
>---<
23+
0| namespace Foo { }
2424

2525
[#2 Insertion delimiter] = " "
Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,24 @@
1-
class aaa {};
2-
enum class ccc {};
1+
class Foo {};
32
---
43

5-
[#1 Content] = 0:6-0:9
4+
[Content] = 0:6-0:9
65
>---<
7-
0| class aaa {};
6+
0| class Foo {};
87

9-
[#1 Removal] = 0:6-0:10
8+
[Removal] = 0:6-0:10
109
>----<
11-
0| class aaa {};
10+
0| class Foo {};
1211

13-
[#1 Leading delimiter] = 0:5-0:6
12+
[Leading delimiter] = 0:5-0:6
1413
>-<
15-
0| class aaa {};
14+
0| class Foo {};
1615

17-
[#1 Trailing delimiter] = 0:9-0:10
16+
[Trailing delimiter] = 0:9-0:10
1817
>-<
19-
0| class aaa {};
18+
0| class Foo {};
2019

21-
[#1 Domain] = 0:0-0:13
20+
[Domain] = 0:0-0:13
2221
>-------------<
23-
0| class aaa {};
22+
0| class Foo {};
2423

25-
[#1 Insertion delimiter] = " "
26-
27-
28-
[#2 Content] = 1:11-1:14
29-
>---<
30-
1| enum class ccc {};
31-
32-
[#2 Removal] = 1:11-1:15
33-
>----<
34-
1| enum class ccc {};
35-
36-
[#2 Leading delimiter] = 1:10-1:11
37-
>-<
38-
1| enum class ccc {};
39-
40-
[#2 Trailing delimiter] = 1:14-1:15
41-
>-<
42-
1| enum class ccc {};
43-
44-
[#2 Domain] = 1:0-1:18
45-
>------------------<
46-
1| enum class ccc {};
47-
48-
[#2 Insertion delimiter] = " "
24+
[Insertion delimiter] = " "
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
enum class Foo {};
2+
---
3+
4+
[Content] = 0:11-0:14
5+
>---<
6+
0| enum class Foo {};
7+
8+
[Removal] = 0:11-0:15
9+
>----<
10+
0| enum class Foo {};
11+
12+
[Leading delimiter] = 0:10-0:11
13+
>-<
14+
0| enum class Foo {};
15+
16+
[Trailing delimiter] = 0:14-0:15
17+
>-<
18+
0| enum class Foo {};
19+
20+
[Domain] = 0:0-0:18
21+
>------------------<
22+
0| enum class Foo {};
23+
24+
[Insertion delimiter] = " "
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
namespace Foo { }
2+
---
3+
4+
[Content] = 0:10-0:13
5+
>---<
6+
0| namespace Foo { }
7+
8+
[Removal] = 0:10-0:14
9+
>----<
10+
0| namespace Foo { }
11+
12+
[Leading delimiter] = 0:9-0:10
13+
>-<
14+
0| namespace Foo { }
15+
16+
[Trailing delimiter] = 0:13-0:14
17+
>-<
18+
0| namespace Foo { }
19+
20+
[Domain] = 0:0-0:17
21+
>-----------------<
22+
0| namespace Foo { }
23+
24+
[Insertion delimiter] = " "

data/fixtures/scopes/cpp/value.return.lambda.scope

Lines changed: 0 additions & 22 deletions
This file was deleted.

data/fixtures/scopes/csharp/branch.loop.scope

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)