We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d46e22 commit 39697eeCopy full SHA for 39697ee
1 file changed
go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll
@@ -62,7 +62,11 @@ module GoCfg {
62
}
63
64
AstNode getChild(AstNode n, int index) {
65
- not skipCfg(result) and not skipCfg(n) and result = n.getChild(index)
+ not skipCfg(n) and
66
+ not skipCfg(result) and
67
+ exists(Go::AstNode c | c = n.getChild(index) |
68
+ if c instanceof Go::ParenExpr then result = c.(Go::ParenExpr).stripParens() else result = c
69
+ )
70
71
72
class Callable extends AstNode {
0 commit comments