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

Member predicate TypeSetLiteralType::getInterfaceType

Gets the interface type of which this type-set literal is the only element, if it exists.

It exists if it has been explicitly defined, as in interface { int64 | uint64 }, or if it has been implicitly created by using the type set literal directly as the bound in a type parameter declaration, as in [T int64 | uint64].

InterfaceType getInterfaceType()