Documentation ¶
Index ¶
- type Context
- func (ctx *Context) Collect(ppkg *packages.Package, onType func(typeName string, directives []string), ...)
- func (m *Context) NextMethodId() uint32
- func (m *Context) NextTypeId() uint16
- func (ctx *Context) SolveType(obj types.Object) ir.Term
- func (ctx *Context) SolveTypeEx(obj types.Object, config TypeSolveConfig) *typeSolver
- type NameSolver
- type TypeSolveConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { *NameSolver // contains filtered or unexported fields }
func NewContext ¶
func NewContext(m interfaces.Storage) *Context
func (*Context) NextMethodId ¶
func (m *Context) NextMethodId() uint32
func (*Context) NextTypeId ¶
func (m *Context) NextTypeId() uint16
func (*Context) SolveTypeEx ¶
func (ctx *Context) SolveTypeEx(obj types.Object, config TypeSolveConfig) *typeSolver
type NameSolver ¶
type NameSolver struct {
// contains filtered or unexported fields
}
func NewNameSolver ¶
func NewNameSolver(m interfaces.Storage) *NameSolver
func (*NameSolver) HasTypeName ¶
func (r *NameSolver) HasTypeName(obj *types.TypeName) bool
func (*NameSolver) PackageOf ¶
func (r *NameSolver) PackageOf(pkgPath string) interfaces.Package
type TypeSolveConfig ¶
type TypeSolveConfig struct {
IsPinnable bool
}
Click to show internal directories.
Click to hide internal directories.