repo.or.cz
/
git
/
gitster.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
userdiff: better method/property matching for C#
[git/gitster.git]
/
t
/
t4018
/
csharp-exclude-control-statements
blob
3a0f404ee1013ef33a6312660963b8b4e1878b08
1
class Example
2
{
3
string Method(int RIGHT)
4
{
5
if (false)
6
{
7
return "out";
8
}
9
else { }
10
if (true) MethodCall(
11
);
12
else MethodCall(
13
);
14
switch ("test")
15
{
16
case "one":
17
return MethodCall(
18
);
19
case "two":
20
break;
21
}
22
(int, int) tuple = (1, 4);
23
switch (tuple)
24
{
25
case (1, 4):
26
MethodCall();
27
break;
28
}
29
30
return "ChangeMe";
31
}
32
33
string MethodCall(int a = 0, int b = 0) => "test";
34
}