You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rust and cpp, getEnclosingBlock is supported as shown by search result. Would Go support this?
/** Gets the parent node of this AST node, but without crossing block boundaries. */privateAstNodeparentInSameBlock(){result=this.getParent()andnotthisinstanceofBlockStmt}/** Gets the innermost block statement to which this AST node belongs, if any. */pragma[nomagic]FuncDefgetEnclosingBlock(){result=this.getParent().parentInSameBlock*()}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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