Documentation
¶
Index ¶
- func IsPointer(typ Type) bool
- func IsUnknown(info Info) bool
- type Array
- type Basic
- type Chan
- type GenericInstanceType
- type ImportPath
- type Info
- type Interface
- type Lazy
- type LazyType
- type Literal
- type Map
- type NamedType
- type Object
- type Operation
- type OperationName
- type PkgFunc
- type PkgTypeMethod
- type PkgVariable
- type Pointer
- type PtrType
- type RawPtr
- type ScopeVariable
- type Signature
- type Slice
- type Struct
- type StructField
- type Tuple
- type TupleValue
- type Type
- type UnderlyingType
- type Unknown
- type Untyped
- type UntypedLiteral
- type UntypedNil
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Array ¶
type Array struct {
Elem Type
}
func (Array) Underlying ¶
func (c Array) Underlying() UnderlyingType
type Chan ¶
type Chan struct {
Elem Type
}
func (Chan) Underlying ¶
func (c Chan) Underlying() UnderlyingType
type GenericInstanceType ¶ added in v1.1.2
func (GenericInstanceType) String ¶ added in v1.1.2
func (c GenericInstanceType) String() string
func (GenericInstanceType) Underlying ¶ added in v1.1.2
func (c GenericInstanceType) Underlying() UnderlyingType
type ImportPath ¶
type ImportPath string
func (ImportPath) String ¶
func (c ImportPath) String() string
func (ImportPath) Underlying ¶
func (c ImportPath) Underlying() UnderlyingType
type Interface ¶
type Interface struct {
}
func (Interface) Underlying ¶
func (c Interface) Underlying() UnderlyingType
type LazyType ¶
type LazyType func() Type
LazyType will be resolved when UseContext.doUseTypeInFile is called that will recursively resolve the lazy type
func (LazyType) Underlying ¶
func (c LazyType) Underlying() UnderlyingType
type Map ¶
func (Map) Underlying ¶
func (c Map) Underlying() UnderlyingType
type NamedType ¶
func ResolveAlias ¶
func (NamedType) Underlying ¶
func (c NamedType) Underlying() UnderlyingType
type Object ¶
type Object interface {
Info
String() string
Type() Type
// contains filtered or unexported methods
}
Object represents type or an object
type OperationName ¶
type OperationName string
func (OperationName) String ¶
func (c OperationName) String() string
type PkgTypeMethod ¶
package level method
func (PkgTypeMethod) String ¶
func (c PkgTypeMethod) String() string
func (PkgTypeMethod) Type ¶
func (c PkgTypeMethod) Type() Type
type PkgVariable ¶
package level variable
func (PkgVariable) String ¶
func (c PkgVariable) String() string
func (PkgVariable) Type ¶
func (c PkgVariable) Type() Type
type PtrType ¶
type PtrType struct {
Elem Type
}
func (PtrType) Underlying ¶
func (c PtrType) Underlying() UnderlyingType
type RawPtr ¶
type RawPtr struct {
Elem UnderlyingType
}
func (RawPtr) Underlying ¶
func (c RawPtr) Underlying() UnderlyingType
type ScopeVariable ¶
type ScopeVariable struct {
Value Object
}
func (ScopeVariable) String ¶
func (c ScopeVariable) String() string
func (ScopeVariable) Type ¶
func (c ScopeVariable) Type() Type
type Signature ¶
type Signature struct {
// Params []Type // don't need it for now
Results []Type
}
func (Signature) Underlying ¶
func (c Signature) Underlying() UnderlyingType
type Slice ¶
type Slice struct {
Elem Type
}
func (Slice) Underlying ¶
func (c Slice) Underlying() UnderlyingType
type Struct ¶
type Struct struct {
Fields []StructField
}
func (Struct) Underlying ¶
func (c Struct) Underlying() UnderlyingType
type StructField ¶
type TupleValue ¶
type TupleValue []Object
func (TupleValue) String ¶
func (c TupleValue) String() string
func (TupleValue) Type ¶
func (c TupleValue) Type() Type
type Type ¶
type Type interface {
Info
String() string
Underlying() UnderlyingType
// contains filtered or unexported methods
}
func ResolveLazy ¶
type UnderlyingType ¶
type UnderlyingType interface {
Type
// contains filtered or unexported methods
}
type Unknown ¶
type Unknown struct{}
func (Unknown) Underlying ¶
func (c Unknown) Underlying() UnderlyingType
type Untyped ¶
type Untyped struct{}
func (Untyped) Underlying ¶
func (c Untyped) Underlying() UnderlyingType
type UntypedLiteral ¶ added in v1.1.4
type UntypedLiteral struct {
Type_ Type
}
e.g. 10
func (UntypedLiteral) String ¶ added in v1.1.4
func (c UntypedLiteral) String() string
func (UntypedLiteral) Type ¶ added in v1.1.4
func (c UntypedLiteral) Type() Type
type UntypedNil ¶
type UntypedNil struct {
}
func (UntypedNil) String ¶
func (c UntypedNil) String() string
func (UntypedNil) Type ¶
func (c UntypedNil) Type() Type
Click to show internal directories.
Click to hide internal directories.