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

Member predicate TypeAssertExpr::getTypeExpr

Gets the expression representing the asserted type.

Note that this is not defined when the type assertion is of the form x.(type), as found in type switches.

Expr getTypeExpr()