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: 10 additions & 0 deletions data/fixtures/scopes/c/functionCall.method.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
foo.bar();
---

[Content] =
[Removal] =
[Domain] = 0:0-0:9
>---------<
0| foo.bar();

[Insertion delimiter] = " "
13 changes: 13 additions & 0 deletions data/fixtures/scopes/c/functionCallee.method.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
foo.bar();
---

[Content] =
[Removal] = 0:0-0:7
>-------<
0| foo.bar();

[Domain] = 0:0-0:9
>---------<
0| foo.bar();

[Insertion delimiter] = " "
18 changes: 11 additions & 7 deletions data/fixtures/scopes/c/name/name.function.scope
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
void Foo::bar() {}
void foo() {}
---

[Content] =
[Removal] = 0:10-0:13
>---<
0| void Foo::bar() {}
[Removal] = 0:5-0:8
>---<
0| void foo() {}

[Domain] = 0:0-0:18
>------------------<
0| void Foo::bar() {}
[Leading delimiter] = 0:4-0:5
>-<
0| void foo() {}

[Domain] = 0:0-0:13
>-------------<
0| void foo() {}

[Insertion delimiter] = " "
18 changes: 11 additions & 7 deletions data/fixtures/scopes/c/name/name.function2.scope
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
void Foo::bar();
void foo();
---

[Content] =
[Removal] = 0:10-0:13
>---<
0| void Foo::bar();
[Removal] = 0:5-0:8
>---<
0| void foo();

[Domain] = 0:0-0:16
>----------------<
0| void Foo::bar();
[Leading delimiter] = 0:4-0:5
>-<
0| void foo();

[Domain] = 0:0-0:11
>-----------<
0| void foo();

[Insertion delimiter] = " "
18 changes: 7 additions & 11 deletions data/fixtures/scopes/c/name/name.function3.scope
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
void foo() {}
void Foo::bar() {}
---

[Content] =
[Removal] = 0:5-0:8
>---<
0| void foo() {}
[Removal] = 0:10-0:13
>---<
0| void Foo::bar() {}

[Leading delimiter] = 0:4-0:5
>-<
0| void foo() {}

[Domain] = 0:0-0:13
>-------------<
0| void foo() {}
[Domain] = 0:0-0:18
>------------------<
0| void Foo::bar() {}

[Insertion delimiter] = " "
18 changes: 7 additions & 11 deletions data/fixtures/scopes/c/name/name.function4.scope
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
void foo();
void Foo::bar();
---

[Content] =
[Removal] = 0:5-0:8
>---<
0| void foo();
[Removal] = 0:10-0:13
>---<
0| void Foo::bar();

[Leading delimiter] = 0:4-0:5
>-<
0| void foo();

[Domain] = 0:0-0:11
>-----------<
0| void foo();
[Domain] = 0:0-0:16
>----------------<
0| void Foo::bar();

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

[Content] =
[Removal] =
[Domain] = 0:0-0:13
>-------------<
0| void foo() {}

[Insertion delimiter] = "\n\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/namedFunction/namedFunction2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
void foo();
---

[Content] =
[Removal] =
[Domain] = 0:0-0:11
>-----------<
0| void foo();

[Insertion delimiter] = "\n\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/namedFunction/namedFunction3.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
void Foo::bar() {}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:18
>------------------<
0| void Foo::bar() {}

[Insertion delimiter] = "\n\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/namedFunction/namedFunction4.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
void Foo::bar();
---

[Content] =
[Removal] =
[Domain] = 0:0-0:16
>----------------<
0| void Foo::bar();

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

[Content] =
[Removal] =
[Domain] = 0:0-0:8
>--------<
0| foo = 0;

[Insertion delimiter] = "\n"
33 changes: 33 additions & 0 deletions data/fixtures/scopes/c/statement/statement.break.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
while (true) {
break;
}
---

[#1 Content] =
[#1 Removal] =
[#1 Domain] = 0:0-2:1
>--------------
0| while (true) {
1| break;
2| }
-<

[#1 Insertion delimiter] = "\n"


[#2 Content] =
[#2 Domain] = 1:4-1:10
>------<
1| break;

[#2 Removal] = 1:0-2:0
>----------
1| break;
2| }
<

[#2 Leading delimiter] = 1:0-1:4
>----<
1| break;

[#2 Insertion delimiter] = "\n"
33 changes: 33 additions & 0 deletions data/fixtures/scopes/c/statement/statement.continue.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
while (true) {
continue;
}
---

[#1 Content] =
[#1 Removal] =
[#1 Domain] = 0:0-2:1
>--------------
0| while (true) {
1| continue;
2| }
-<

[#1 Insertion delimiter] = "\n"


[#2 Content] =
[#2 Domain] = 1:4-1:13
>---------<
1| continue;

[#2 Removal] = 1:0-2:0
>-------------
1| continue;
2| }
<

[#2 Leading delimiter] = 1:0-1:4
>----<
1| continue;

[#2 Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/statement/statement.doWhile.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
do {} while (true);
---

[Content] =
[Removal] =
[Domain] = 0:0-0:19
>-------------------<
0| do {} while (true);

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/statement/statement.for.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
for (int i = 0; i < size; i++) {}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:33
>---------------------------------<
0| for (int i = 0; i < size; i++) {}

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/statement/statement.function.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
void foo() {}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:13
>-------------<
0| void foo() {}

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/statement/statement.function2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
void foo();
---

[Content] =
[Removal] =
[Domain] = 0:0-0:11
>-----------<
0| void foo();

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/statement/statement.function3.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
void Foo::bar() {}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:18
>------------------<
0| void Foo::bar() {}

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/statement/statement.function4.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
void Foo::bar();
---

[Content] =
[Removal] =
[Domain] = 0:0-0:16
>----------------<
0| void Foo::bar();

[Insertion delimiter] = "\n"
15 changes: 15 additions & 0 deletions data/fixtures/scopes/c/statement/statement.if.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
if (true) {}
else if (false) {}
else {}
---

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

[Insertion delimiter] = "\n"
33 changes: 33 additions & 0 deletions data/fixtures/scopes/c/statement/statement.return.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
int foo() {
return 0;
}
---

[#1 Content] =
[#1 Removal] =
[#1 Domain] = 0:0-2:1
>-----------
0| int foo() {
1| return 0;
2| }
-<

[#1 Insertion delimiter] = "\n"


[#2 Content] =
[#2 Domain] = 1:4-1:13
>---------<
1| return 0;

[#2 Removal] = 1:0-2:0
>-------------
1| return 0;
2| }
<

[#2 Leading delimiter] = 1:0-1:4
>----<
1| return 0;

[#2 Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/statement/statement.switch.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
switch (foo) {}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:15
>---------------<
0| switch (foo) {}

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/c/statement/statement.while.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
while (true) {}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:15
>---------------<
0| while (true) {}

[Insertion delimiter] = "\n"
Loading
Loading