Replies: 1 comment 4 replies
-
|
Can I ask what you want to use it for? The two examples you give are very much about syntactic blocks. Both of those languages have a func f() {
g()
h()
}At a syntactic level it clearly has one block. But from the point of the view of control flow it has two basic blocks, because |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
codeql/go/ql/lib/semmle/go/AST.qll
Lines 77 to 85 in 6fa6093
In rust and cpp,
getEnclosingBlockis supported as shown by search result. Would Go support this?Beta Was this translation helpful? Give feedback.
All reactions