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