Debian Codegraph @

simple/s1008/testdata/go1.0/CheckIfReturn/comment.go

raw
1 package pkg
2
3 func cmt1(x string) bool {
4 // A
5 if len(x) > 0 {
6 return false
7 }
8 // B
9 return true
10 }
11
12 func cmt2(x string) bool {
13 if len(x) > 0 { // A
14 return false
15 }
16 return true // B
17 }
18
19 func cmt3(x string) bool {
20 if len(x) > 0 {
21 return false // A
22 }
23 return true // B
24 }
25
26 func cmt4(x string) bool {
27 if len(x) > 0 {
28 return false // A
29 }
30 return true
31 // B
32 }
33
34 func cmt5(x string) bool {
35 if len(x) > 0 {
36 return false
37 }
38 return true // A
39 }
40
41 func cmt6(x string) bool {
42 if len(x) > 0 {
43 return false // A
44 }
45 return true
46 }
47
48 func cmt7(x string) bool {
49 if len(x) > 0 {
50 // A
51 return false
52 }
53 // B
54 return true
55 }