CodeQL library for Go
codeql/go-all 0.7.15-dev (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()