Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions data/fixtures/scopes/c/branch.loop.scope

This file was deleted.

10 changes: 0 additions & 10 deletions data/fixtures/scopes/c/branch.loop2.scope

This file was deleted.

10 changes: 0 additions & 10 deletions data/fixtures/scopes/c/branch.loop3.scope

This file was deleted.

7 changes: 7 additions & 0 deletions data/fixtures/scopes/c/branch.ternary.iteration.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
true ? 0 : 1;
---

[Range] =
[Domain] = 0:0-0:12
>------------<
0| true ? 0 : 1;
26 changes: 13 additions & 13 deletions data/fixtures/scopes/cpp/interior.namespace.scope
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
namespace NS { }
namespace Foo { }
---

[#1 Content] =
[#1 Removal] = 0:14-0:15
>-<
0| namespace NS { }
[#1 Removal] = 0:15-0:16
>-<
0| namespace Foo { }

[#1 Domain] = 0:0-0:16
>----------------<
0| namespace NS { }
[#1 Domain] = 0:0-0:17
>-----------------<
0| namespace Foo { }

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:14-0:15
>-<
0| namespace NS { }
[#2 Removal] = 0:15-0:16
>-<
0| namespace Foo { }

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

[#2 Insertion delimiter] = " "
48 changes: 12 additions & 36 deletions data/fixtures/scopes/cpp/name.class.scope
Original file line number Diff line number Diff line change
@@ -1,48 +1,24 @@
class aaa {};
enum class ccc {};
class Foo {};
---

[#1 Content] = 0:6-0:9
[Content] = 0:6-0:9
>---<
0| class aaa {};
0| class Foo {};

[#1 Removal] = 0:6-0:10
[Removal] = 0:6-0:10
>----<
0| class aaa {};
0| class Foo {};

[#1 Leading delimiter] = 0:5-0:6
[Leading delimiter] = 0:5-0:6
>-<
0| class aaa {};
0| class Foo {};

[#1 Trailing delimiter] = 0:9-0:10
[Trailing delimiter] = 0:9-0:10
>-<
0| class aaa {};
0| class Foo {};

[#1 Domain] = 0:0-0:13
[Domain] = 0:0-0:13
>-------------<
0| class aaa {};
0| class Foo {};

[#1 Insertion delimiter] = " "


[#2 Content] = 1:11-1:14
>---<
1| enum class ccc {};

[#2 Removal] = 1:11-1:15
>----<
1| enum class ccc {};

[#2 Leading delimiter] = 1:10-1:11
>-<
1| enum class ccc {};

[#2 Trailing delimiter] = 1:14-1:15
>-<
1| enum class ccc {};

[#2 Domain] = 1:0-1:18
>------------------<
1| enum class ccc {};

[#2 Insertion delimiter] = " "
[Insertion delimiter] = " "
24 changes: 24 additions & 0 deletions data/fixtures/scopes/cpp/name.class2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
enum class Foo {};
---

[Content] = 0:11-0:14
>---<
0| enum class Foo {};

[Removal] = 0:11-0:15
>----<
0| enum class Foo {};

[Leading delimiter] = 0:10-0:11
>-<
0| enum class Foo {};

[Trailing delimiter] = 0:14-0:15
>-<
0| enum class Foo {};

[Domain] = 0:0-0:18
>------------------<
0| enum class Foo {};

[Insertion delimiter] = " "
24 changes: 24 additions & 0 deletions data/fixtures/scopes/cpp/name.namespace.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
namespace Foo { }
---

[Content] = 0:10-0:13
>---<
0| namespace Foo { }

[Removal] = 0:10-0:14
>----<
0| namespace Foo { }

[Leading delimiter] = 0:9-0:10
>-<
0| namespace Foo { }

[Trailing delimiter] = 0:13-0:14
>-<
0| namespace Foo { }

[Domain] = 0:0-0:17
>-----------------<
0| namespace Foo { }

[Insertion delimiter] = " "
22 changes: 0 additions & 22 deletions data/fixtures/scopes/cpp/value.return.lambda.scope

This file was deleted.

10 changes: 0 additions & 10 deletions data/fixtures/scopes/csharp/branch.loop.scope

This file was deleted.

10 changes: 0 additions & 10 deletions data/fixtures/scopes/csharp/branch.loop2.scope

This file was deleted.

10 changes: 0 additions & 10 deletions data/fixtures/scopes/csharp/branch.loop3.scope

This file was deleted.

10 changes: 0 additions & 10 deletions data/fixtures/scopes/csharp/branch.loop4.scope

This file was deleted.

7 changes: 7 additions & 0 deletions data/fixtures/scopes/csharp/branch.ternary.iteration.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
true ? 0 : 1;
---

[Range] =
[Domain] = 0:0-0:12
>------------<
0| true ? 0 : 1;
44 changes: 22 additions & 22 deletions data/fixtures/scopes/csharp/branch.ternary.scope
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
value ? 1 : 2;
true ? 0 : 1;
---

[#1 Content] =
[#1 Domain] = 0:8-0:9
>-<
0| value ? 1 : 2;
[#1 Domain] = 0:7-0:8
>-<
0| true ? 0 : 1;

[#1 Removal] = 0:8-0:10
>--<
0| value ? 1 : 2;
[#1 Removal] = 0:7-0:9
>--<
0| true ? 0 : 1;

[#1 Leading delimiter] = 0:7-0:8
>-<
0| value ? 1 : 2;
[#1 Leading delimiter] = 0:6-0:7
>-<
0| true ? 0 : 1;

[#1 Trailing delimiter] = 0:9-0:10
>-<
0| value ? 1 : 2;
[#1 Trailing delimiter] = 0:8-0:9
>-<
0| true ? 0 : 1;

[#1 Insertion delimiter] = "\n"


[#2 Content] =
[#2 Domain] = 0:12-0:13
>-<
0| value ? 1 : 2;
[#2 Domain] = 0:11-0:12
>-<
0| true ? 0 : 1;

[#2 Removal] = 0:11-0:13
>--<
0| value ? 1 : 2;
[#2 Removal] = 0:10-0:12
>--<
0| true ? 0 : 1;

[#2 Leading delimiter] = 0:11-0:12
>-<
0| value ? 1 : 2;
[#2 Leading delimiter] = 0:10-0:11
>-<
0| true ? 0 : 1;

[#2 Insertion delimiter] = "\n"
35 changes: 26 additions & 9 deletions data/fixtures/scopes/csharp/condition.if.scope
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
if (1 < 5) { }
if (true) {}
else if (false) {}
else {}
---

[Content] =
[Removal] = 0:4-0:9
>-----<
0| if (1 < 5) { }
[#1 Content] =
[#1 Removal] = 0:4-0:8
>----<
0| if (true) {}

[Domain] = 0:0-0:14
>--------------<
0| if (1 < 5) { }
[#1 Domain] = 0:0-2:7
>------------
0| if (true) {}
1| else if (false) {}
2| else {}
-------<

[Insertion delimiter] = " "
[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 1:9-1:14
>-----<
1| else if (false) {}

[#2 Domain] = 1:0-1:18
>------------------<
1| else if (false) {}

[#2 Insertion delimiter] = " "
10 changes: 5 additions & 5 deletions data/fixtures/scopes/csharp/value.return.lambda.scope
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
() => 2;
() => 0;
---

[Content] = 0:6-0:7
>-<
0| () => 2;
0| () => 0;

[Removal] = 0:5-0:7
>--<
0| () => 2;
0| () => 0;

[Leading delimiter] = 0:5-0:6
>-<
0| () => 2;
0| () => 0;

[Domain] = 0:0-0:7
>-------<
0| () => 2;
0| () => 0;

[Insertion delimiter] = " "
Loading
Loading