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
8 changes: 4 additions & 4 deletions data/fixtures/scopes/c/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ a << 2;
a >> 2;
a <<= 2;
a >>= 2;
a->b
foo->bar;
---
[#1 Content] = 0:2-0:3
>-<
Expand Down Expand Up @@ -40,6 +40,6 @@ a->b
>---<
7| a >>= 2;

[#9 Content] = 8:1-8:3
>--<
8| a->b
[#9 Content] = 8:3-8:5
>--<
8| foo->bar;
8 changes: 4 additions & 4 deletions data/fixtures/scopes/cpp/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
auto max(int a, int b) -> int;
auto max() -> int;
---
[Content] = 0:23-0:25
>--<
0| auto max(int a, int b) -> int;
[Content] = 0:11-0:13
>--<
0| auto max() -> int;
6 changes: 3 additions & 3 deletions data/fixtures/scopes/csharp/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ a << 2;
a >> 2;
a <<= 2;
a >>= 2;
foo->bar;
() => 2;
foo->bar;
---
[#1 Content] = 0:2-0:3
>-<
Expand Down Expand Up @@ -43,8 +43,8 @@ foo->bar;

[#9 Content] = 8:3-8:5
>--<
8| foo->bar;
8| () => 2;

[#10 Content] = 9:3-9:5
>--<
9| () => 2;
9| foo->bar;
4 changes: 2 additions & 2 deletions data/fixtures/scopes/go/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ a << 2
a >> 2
a <<= 2
a >>= 2
ch <- 42
ch <- 2
msg := <- ch
---
[#1 Content] = 0:2-0:3
Expand Down Expand Up @@ -43,7 +43,7 @@ msg := <- ch

[#9 Content] = 8:3-8:5
>--<
8| ch <- 42
8| ch <- 2

[#10 Content] = 9:7-9:9
>--<
Expand Down
10 changes: 6 additions & 4 deletions data/fixtures/scopes/java/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ a >>= 2;
a >>> 2;
a >>>= 2;
() -> 2;
switch () { case "foo" -> 1 }
switch (foo) {
case a -> 2
}
---
[#1 Content] = 0:2-0:3
>-<
Expand Down Expand Up @@ -55,6 +57,6 @@ switch () { case "foo" -> 1 }
>--<
10| () -> 2;

[#12 Content] = 11:23-11:25
>--<
11| switch () { case "foo" -> 1 }
[#12 Content] = 12:11-12:13
>--<
12| case a -> 2
18 changes: 10 additions & 8 deletions data/fixtures/scopes/kotlin/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
1 > 2
1 <= 2
1 >= 2
when (foo) { x -> 0 }
{ x -> 0 }
{a -> 2}
when (foo) {
a -> 2
}
---
[#1 Content] = 0:2-0:3
>-<
Expand All @@ -21,10 +23,10 @@ when (foo) { x -> 0 }
>--<
3| 1 >= 2

[#5 Content] = 4:15-4:17
>--<
4| when (foo) { x -> 0 }
[#5 Content] = 4:3-4:5
>--<
4| {a -> 2}

[#6 Content] = 5:4-5:6
>--<
5| { x -> 0 }
[#6 Content] = 6:6-6:8
>--<
6| a -> 2
8 changes: 4 additions & 4 deletions data/fixtures/scopes/php/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a << 2;
a >> 2;
a <<= 2;
a >>= 2;
['first' => 1];
['a' => 2];
$a = <<< EOT;
$a = <<< 'TEXT';
foo->bar;
Expand Down Expand Up @@ -47,9 +47,9 @@ foo?->bar();
>--<
8| a >>= 2;

[#9 Content] = 9:9-9:11
>--<
9| ['first' => 1];
[#9 Content] = 9:5-9:7
>--<
9| ['a' => 2];

[#10 Content] = 10:5-10:8
>---<
Expand Down
4 changes: 2 additions & 2 deletions data/fixtures/scopes/python/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ a << 2
a >> 2
a <<= 2
a >>= 2
def foo() -> int:
def foo() -> int: pass
---
[#1 Content] = 0:2-0:3
>-<
Expand Down Expand Up @@ -42,4 +42,4 @@ def foo() -> int:

[#9 Content] = 8:10-8:12
>--<
8| def foo() -> int:
8| def foo() -> int: pass
72 changes: 36 additions & 36 deletions data/fixtures/scopes/r/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
foo < 0
foo > 0
foo <- 0
foo -> 0
foo <= 0
foo >= 0
foo <<- 0
foo ->> 0
foo |> 0
1 < 2
1 > 2
1 <= 2
1 >= 2
a <- 2
a -> 2
a <<- 2
a ->> 2
a |> 2
---
[#1 Content] = 0:4-0:5
>-<
0| foo < 0
[#1 Content] = 0:2-0:3
>-<
0| 1 < 2

[#2 Content] = 1:4-1:5
>-<
1| foo > 0
[#2 Content] = 1:2-1:3
>-<
1| 1 > 2

[#3 Content] = 2:4-2:6
>--<
2| foo <- 0
[#3 Content] = 2:2-2:4
>--<
2| 1 <= 2

[#4 Content] = 3:4-3:6
>--<
3| foo -> 0
[#4 Content] = 3:2-3:4
>--<
3| 1 >= 2

[#5 Content] = 4:4-4:6
>--<
4| foo <= 0
[#5 Content] = 4:2-4:4
>--<
4| a <- 2

[#6 Content] = 5:4-5:6
>--<
5| foo >= 0
[#6 Content] = 5:2-5:4
>--<
5| a -> 2

[#7 Content] = 6:4-6:7
>---<
6| foo <<- 0
[#7 Content] = 6:2-6:5
>---<
6| a <<- 2

[#8 Content] = 7:4-7:7
>---<
7| foo ->> 0
[#8 Content] = 7:2-7:5
>---<
7| a ->> 2

[#9 Content] = 8:4-8:6
>--<
8| foo |> 0
[#9 Content] = 8:2-8:4
>--<
8| a |> 2
10 changes: 6 additions & 4 deletions data/fixtures/scopes/ruby/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ a >> 2
a <<= 2
a >>= 2
a = { :b => 2 }
case 85 when 0 then => "Fail" end
case foo
when a then => 2
end
---
[#1 Content] = 0:2-0:3
>-<
Expand Down Expand Up @@ -45,6 +47,6 @@ case 85 when 0 then => "Fail" end
>--<
8| a = { :b => 2 }

[#10 Content] = 9:20-9:22
>--<
9| case 85 when 0 then => "Fail" end
[#10 Content] = 10:16-10:18
>--<
10| when a then => 2
24 changes: 14 additions & 10 deletions data/fixtures/scopes/rust/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ a << 2;
a >> 2;
a <<= 2;
a >>= 2;
fn foo() -> string {}
match number { 0 => "fail" }
macro_rules! my_expr { ($x:expr) => {}; }
fn foo() -> i32 {}
match number {
0 => "fail"
}
macro_rules! my_expr {
($x:expr) => {};
}
---
[#1 Content] = 0:2-0:3
>-<
Expand Down Expand Up @@ -44,12 +48,12 @@ macro_rules! my_expr { ($x:expr) => {}; }

[#9 Content] = 8:9-8:11
>--<
8| fn foo() -> string {}
8| fn foo() -> i32 {}

[#10 Content] = 9:17-9:19
>--<
9| match number { 0 => "fail" }
[#10 Content] = 10:6-10:8
>--<
10| 0 => "fail"

[#11 Content] = 10:33-10:35
>--<
10| macro_rules! my_expr { ($x:expr) => {}; }
[#11 Content] = 13:14-13:16
>--<
13| ($x:expr) => {};
Loading
Loading