CodeQL library for Go
codeql/go-all 8.0.0 (changelog, source)
Search

Predicate signature AstSig::getSwitchInit

Gets the initializer of switch statement switch, if any.

Only some languages (e.g. Go) support an initializer that is evaluated before the switch expression.

signature AstNode getSwitchInit(Switch switch)