Module Types
Provides classes for working with Go types.
Import path
import semmle.go.Types
Imports
go | Provides classes for working with Go programs. |
Predicates
getTermInIntersection | Gets a term in the intersection of type-set literals |
lookThroughPointerType | Gets the base type if |
numberOfTypesWithMethodName | Gets the number of types with method |
Classes
ArrayType | An array type. |
BasicInterfaceType | A basic interface type. |
BasicType | A basic type. |
BoolExprType | The |
BoolLiteralType | The type of a bool literal. |
BoolType | The normal boolean type or the literal boolean type |
ByteSliceType | A byte slice type |
ChanType | A channel type. |
ComparableType | The predeclared |
Complex128Type | The type |
Complex64Type | The type |
ComplexLiteralType | The type of a complex literal. |
ComplexType | A complex-number type such as |
CompositeType | A composite type, that is, not a basic type. |
EmptyInterfaceType | An empty interface type. |
ErrorType | A type that implements the builtin interface |
Float32Type | The type |
Float64Type | The type |
FloatLiteralType | The type of a float literal. |
FloatType | A floating-point type such as |
Int16Type | The type |
Int32Type | The type |
Int64Type | The type |
Int8Type | The type |
IntLiteralType | The type of an integer literal. |
IntType | The type |
IntegerType | An integer type such as |
InterfaceType | An interface type. |
InvalidType | An invalid type. |
LiteralType | The type of a literal. |
MapType | A map type. |
NamedType | A named type. |
NilLiteralType | The type of |
NumericType | A numeric type such as |
PointerType | A pointer type. |
RecvChanType | A channel type that can only receive. |
RuneLiteralType | The type of a rune literal. |
SendChanType | A channel type that can only send. |
SendRecvChanType | A channel type that can both send and receive. |
SignatureType | A signature type. |
SignedIntegerType | A signed integer type such as |
SliceType | A slice type. |
StringExprType | The |
StringLiteralType | The type of a string literal. |
StringType | The normal string type or the literal string type |
StructType | A struct type. |
TupleType | A tuple type. |
Type | A Go type. |
TypeParamType | A type that comes from a type parameter. |
TypeSetLiteralType | A type set literal type, used when declaring a non-basic interface. May be a single term, consisting of either a type or a tilde followed by a type, or a union of terms. |
TypeSetTerm | A term in a type set literal. |
Uint16Type | The type |
Uint32Type | The type |
Uint64Type | The type |
Uint8Type | The type |
UintType | The type |
UintptrType | The type |
UnsafePointerType | The type |
UnsignedIntegerType | An unsigned integer type such as |