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
20 changes: 20 additions & 0 deletions data/fixtures/scopes/c/name/name.typeAlias.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
typedef int foo;
---

[Content] = 0:12-0:15
>---<
0| typedef int foo;

[Removal] = 0:11-0:15
>----<
0| typedef int foo;

[Leading delimiter] = 0:11-0:12
>-<
0| typedef int foo;

[Domain] = 0:0-0:16
>----------------<
0| typedef int foo;

[Insertion delimiter] = " "
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/statement/statement.typeAlias.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
typedef int foo;
---

[Content] =
[Removal] =
[Domain] = 0:0-0:16
>----------------<
0| typedef int foo;

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/type/type.alias.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
typedef int foo;
---

[Content] =
[Removal] =
[Domain] = 0:0-0:16
>----------------<
0| typedef int foo;

[Insertion delimiter] = " "
45 changes: 34 additions & 11 deletions data/fixtures/scopes/c/type/type.argument.formal.scope
Original file line number Diff line number Diff line change
@@ -1,39 +1,62 @@
void foo(int aaa) {}
void foo(int aaa, int bbb) {}
---

[#1 Content] = 0:0-0:4
>----<
0| void foo(int aaa) {}
0| void foo(int aaa, int bbb) {}

[#1 Removal] = 0:0-0:5
>-----<
0| void foo(int aaa) {}
0| void foo(int aaa, int bbb) {}

[#1 Trailing delimiter] = 0:4-0:5
>-<
0| void foo(int aaa) {}
0| void foo(int aaa, int bbb) {}

[#1 Domain] = 0:0-0:20
>--------------------<
0| void foo(int aaa) {}
[#1 Domain] = 0:0-0:29
>-----------------------------<
0| void foo(int aaa, int bbb) {}

[#1 Insertion delimiter] = " "


[#2 Content] = 0:9-0:12
>---<
0| void foo(int aaa) {}
0| void foo(int aaa, int bbb) {}

[#2 Removal] = 0:9-0:13
>----<
0| void foo(int aaa) {}
0| void foo(int aaa, int bbb) {}

[#2 Trailing delimiter] = 0:12-0:13
>-<
0| void foo(int aaa) {}
0| void foo(int aaa, int bbb) {}

[#2 Domain] = 0:9-0:16
>-------<
0| void foo(int aaa) {}
0| void foo(int aaa, int bbb) {}

[#2 Insertion delimiter] = " "


[#3 Content] = 0:18-0:21
>---<
0| void foo(int aaa, int bbb) {}

[#3 Removal] = 0:18-0:22
>----<
0| void foo(int aaa, int bbb) {}

[#3 Leading delimiter] = 0:17-0:18
>-<
0| void foo(int aaa, int bbb) {}

[#3 Trailing delimiter] = 0:21-0:22
>-<
0| void foo(int aaa, int bbb) {}

[#3 Domain] = 0:18-0:25
>-------<
0| void foo(int aaa, int bbb) {}

[#3 Insertion delimiter] = " "
24 changes: 24 additions & 0 deletions data/fixtures/scopes/c/value/value.typeAlias.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
typedef int foo;
---

[Content] = 0:8-0:11
>---<
0| typedef int foo;

[Removal] = 0:8-0:12
>----<
0| typedef int foo;

[Leading delimiter] = 0:7-0:8
>-<
0| typedef int foo;

[Trailing delimiter] = 0:11-0:12
>-<
0| typedef int foo;

[Domain] = 0:0-0:16
>----------------<
0| typedef int foo;

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

[Content] =
[Removal] =
[Domain] = 0:0-0:5
>-----<
0| [] {}

[Insertion delimiter] = "\n"
24 changes: 24 additions & 0 deletions data/fixtures/scopes/cpp/name/name.typeAlias.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using Foo = Bar;
---

[Content] = 0:6-0:9
>---<
0| using Foo = Bar;

[Removal] = 0:0-0:12
>------------<
0| using Foo = Bar;

[Leading delimiter] = 0:5-0:6
>-<
0| using Foo = Bar;

[Trailing delimiter] = 0:9-0:10
>-<
0| using Foo = Bar;

[Domain] = 0:0-0:16
>----------------<
0| using Foo = Bar;

[Insertion delimiter] = " "
10 changes: 10 additions & 0 deletions data/fixtures/scopes/cpp/statement/statement.typeAlias.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using Foo = Bar;
---

[Content] =
[Removal] =
[Domain] = 0:0-0:16
>----------------<
0| using Foo = Bar;

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/cpp/type/type.alias.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using Foo = Bar;
---

[Content] =
[Removal] =
[Domain] = 0:0-0:16
>----------------<
0| using Foo = Bar;

[Insertion delimiter] = " "
20 changes: 20 additions & 0 deletions data/fixtures/scopes/cpp/type/type.return.lambda.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[]() -> int {}
---

[Content] = 0:8-0:11
>---<
0| []() -> int {}

[Removal] = 0:4-0:11
>-------<
0| []() -> int {}

[Leading delimiter] = 0:4-0:8
>----<
0| []() -> int {}

[Domain] = 0:0-0:14
>--------------<
0| []() -> int {}

[Insertion delimiter] = " "
20 changes: 20 additions & 0 deletions data/fixtures/scopes/cpp/value/value.typeAlias.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using Foo = Bar;
---

[Content] = 0:12-0:15
>---<
0| using Foo = Bar;

[Removal] = 0:9-0:15
>------<
0| using Foo = Bar;

[Leading delimiter] = 0:9-0:12
>---<
0| using Foo = Bar;

[Domain] = 0:0-0:16
>----------------<
0| using Foo = Bar;

[Insertion delimiter] = " "
10 changes: 10 additions & 0 deletions data/fixtures/scopes/csharp/interior/interior.resource.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using (Foo foo = create()) { }
---

[Content] =
[Removal] =
[Domain] = 0:28-0:29
>-<
0| using (Foo foo = create()) { }

[Insertion delimiter] = " "
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
foo(aaa: 0, bbb: 1);
---

[#1 Content] =
[#1 Domain] = 0:0-0:20
>--------------------<
0| foo(aaa: 0, bbb: 1);


[#2 Content] =
[#2 Domain] = 0:4-0:18
>--------------<
0| foo(aaa: 0, bbb: 1);
39 changes: 39 additions & 0 deletions data/fixtures/scopes/csharp/name/name.argument.actual.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
foo(aaa: 0, bbb: 1);
---

[#1 Content] = 0:4-0:7
>---<
0| foo(aaa: 0, bbb: 1);

[#1 Removal] = 0:4-0:9
>-----<
0| foo(aaa: 0, bbb: 1);

[#1 Trailing delimiter] = 0:7-0:9
>--<
0| foo(aaa: 0, bbb: 1);

[#1 Domain] = 0:4-0:10
>------<
0| foo(aaa: 0, bbb: 1);

[#1 Insertion delimiter] = " "


[#2 Content] = 0:12-0:15
>---<
0| foo(aaa: 0, bbb: 1);

[#2 Removal] = 0:12-0:17
>-----<
0| foo(aaa: 0, bbb: 1);

[#2 Trailing delimiter] = 0:15-0:17
>--<
0| foo(aaa: 0, bbb: 1);

[#2 Domain] = 0:12-0:18
>------<
0| foo(aaa: 0, bbb: 1);

[#2 Insertion delimiter] = " "
45 changes: 45 additions & 0 deletions data/fixtures/scopes/csharp/name/name.method.interface.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
interface IFoo {
void Bar();
}
---

[#1 Content] = 0:10-0:14
>----<
0| interface IFoo {

[#1 Removal] = 0:10-0:15
>-----<
0| interface IFoo {

[#1 Leading delimiter] = 0:9-0:10
>-<
0| interface IFoo {

[#1 Trailing delimiter] = 0:14-0:15
>-<
0| interface IFoo {

[#1 Domain] = 0:0-2:1
>----------------
0| interface IFoo {
1| void Bar();
2| }
-<

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 1:9-1:12
>---<
1| void Bar();

[#2 Leading delimiter] = 1:8-1:9
>-<
1| void Bar();

[#2 Domain] = 1:4-1:15
>-----------<
1| void Bar();

[#2 Insertion delimiter] = " "
24 changes: 24 additions & 0 deletions data/fixtures/scopes/csharp/name/name.resource.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using (Foo foo = create()) {}
---

[Content] = 0:11-0:14
>---<
0| using (Foo foo = create()) {}

[Removal] = 0:11-0:15
>----<
0| using (Foo foo = create()) {}

[Leading delimiter] = 0:10-0:11
>-<
0| using (Foo foo = create()) {}

[Trailing delimiter] = 0:14-0:15
>-<
0| using (Foo foo = create()) {}

[Domain] = 0:0-0:29
>-----------------------------<
0| using (Foo foo = create()) {}

[Insertion delimiter] = " "
Loading
Loading