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