collector

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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) Collect

func (ctx *Context) Collect(
	ppkg *packages.Package,
	onType func(typeName string, directives []string),
	onFunction func(funcName, recvName string, recvPointer bool, pos token.Pos, directives []string),
	onConst func(constName string, directives []string),
)

func (*Context) NextMethodId

func (m *Context) NextMethodId() uint32

func (*Context) NextTypeId

func (m *Context) NextTypeId() uint16

func (*Context) SolveType

func (ctx *Context) SolveType(obj types.Object) ir.Term

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

func (*NameSolver) ThrowAt

func (r *NameSolver) ThrowAt(obj types.Object, args ...any)

func (*NameSolver) UriFor

func (r *NameSolver) UriFor(obj types.Object) uri.Uri

type TypeSolveConfig

type TypeSolveConfig struct {
	IsPinnable bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL