type go/types.Context
26 uses
go/types (current package)
api.go#L117: Context *Context
check.go#L100: ctxt *Context // context for de-duplicating instances
context.go#L21: type Context struct {
context.go#L35: func NewContext() *Context {
context.go#L36: return &Context{
context.go#L45: func (ctxt *Context) instanceHash(orig Type, targs []Type) string {
context.go#L67: func (ctxt *Context) lookup(h string, orig Type, targs []Type) Type {
context.go#L88: func (ctxt *Context) update(h string, orig Type, targs []Type, inst Type) Type {
context.go#L114: func (ctxt *Context) getID(t Type) int {
instantiate.go#L42: func Instantiate(ctxt *Context, orig Type, targs []Type, validate bool) (Type, error) {
instantiate.go#L66: func (check *Checker) instance(pos token.Pos, orig Type, targs []Type, ctxt *Context) (res Type) {
instantiate.go#L82: named.resolver = func(ctxt *Context, n *Named) (*TypeParamList, Type, *methodList) {
named.go#L30: resolver func(*Context, *Named) (tparams *TypeParamList, underlying Type, methods *methodList)
named.go#L44: func (t *Named) resolve(ctxt *Context) *Named {
named.go#L343: func (check *Checker) bestContext(ctxt *Context) *Context {
named.go#L358: func expandNamed(ctxt *Context, n *Named, instPos token.Pos) (tparams *TypeParamList, underlying Type, methods *methodList) {
object.go#L238: resolve := func(_ *Context, t *Named) (*TypeParamList, Type, *methodList) {
subst.go#L52: func (check *Checker) subst(pos token.Pos, typ Type, smap substMap, ctxt *Context) Type {
subst.go#L79: ctxt *Context
typestring.go#L80: ctxt *Context // if non-nil, we are type hashing
typestring.go#L89: func newTypeHasher(buf *bytes.Buffer, ctxt *Context) *typeWriter {
typexpr.go#L448: inst.resolver = func(ctxt *Context, n *Named) (*TypeParamList, Type, *methodList) {
golang.org/x/tools/internal/gcimporter
ureader_yes.go#L27: ctxt *types.Context
ureader_yes.go#L83: func readUnifiedPackage(fset *token.FileSet, ctxt *types.Context, imports map[string]*types.Package, input pkgbits.PkgDecoder) *types.Package {
golang.org/x/tools/internal/typeparams
typeparams_go118.go#L141: type Context = types.Context