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

Member predicate CaseClause::getImplicitlyDeclaredVariable

Gets the implicitly declared variable for this case clause, if any.

This exists for case clauses in type switch statements which declare a variable in the guard.

LocalVariable getImplicitlyDeclaredVariable()