go/types.Nil.Name (method, view implemented interface methods)
102 uses
go/types (current package)
api.go#L472: buf.WriteString(lhs.Name())
decl.go#L530: }).describef(obj, "validType(%s)", obj.Name())
decl.go#L770: check.errorf(m, DuplicateMethod, "method %s.%s already declared at %v", obj.Name(), m.name, alt.Pos())
decl.go#L772: check.errorf(m, DuplicateMethod, "method %s.%s already declared", obj.Name(), m.name)
infer.go#L505: tname := NewTypeName(tparam.Obj().Pos(), tparam.Obj().Pkg(), tparam.Obj().Name(), nil)
instantiate.go#L137: if !check.validateTArgLen(pos, orig.obj.Name(), tparams.Len(), len(targs)) {
lookup.go#L483: *cause = check.sprintf("(missing method %s)", m.Name())
lookup.go#L487: *cause = check.sprintf("(missing method %s)\n\t\thave %s\n\t\twant %s", m.Name(), fs, ms)
lookup.go#L489: *cause = check.sprintf("(unexported method %s)", m.Name())
lookup.go#L505: *cause = check.sprintf("(wrong type for method %s)", m.Name())
lookup.go#L508: *cause = check.sprintf("(wrong type for method %s)\n\t\thave %s\n\t\twant %s", m.Name(), fs, ms)
lookup.go#L510: *cause = check.sprintf("(ambiguous selector %s.%s)", V, m.Name())
lookup.go#L512: *cause = check.sprintf("(method %s has pointer receiver)", m.Name())
lookup.go#L514: *cause = check.sprintf("(%s.%s is a field, not a method)", V, m.Name())
mono.go#L157: err.addf(atPos(edge.pos), "%s implicitly parameterized by %s", obj.Name(), TypeString(edge.typ, qf)) // secondary error, \t indented
mono.go#L159: err.addf(atPos(edge.pos), "%s instantiated as %s", obj.Name(), TypeString(edge.typ, qf)) // secondary error, \t indented
object.go#L117: func (obj *object) Name() string { return obj.name }
object.go#L525: fmt.Fprintf(buf, "package %s", obj.Name())
sizes.go#L123: return obj.Name() == "align64" &&
go.pact.im/x/plumb/internal/discover
discover.go#L276: if obj.Name() == "_" {
discover.go#L287: if obj.Name() == "init" && sig.Recv() == nil {
discover.go#L295: Name: obj.Name(),
discover.go#L308: return nil, diag.Errorf(pos, diag.ErrInvalidType, "method %s has an unresolvable receiver type", obj.Name())
discover.go#L316: p.Name = named.Obj().Name() + "." + obj.Name()
discover.go#L428: Name: obj.Name(),
discover.go#L519: return nil, diag.Errorf(pos, diag.ErrUntypedConstant, "constant %s must have an explicit type", obj.Name())
discover.go#L526: Name: obj.Name(),
discover.go#L631: tn.Name(), gotypes.KindOfType(under))
discover.go#L643: Name: tn.Name(),
discover.go#L694: Name: gotypes.TypeNameOf(owner).Name() + "." + obj.Name(),
discover.go#L726: return nil, diag.Errorf(pos, diag.ErrConstraintInterfaceMethod, "%s: a constraint type cannot be the type of a value, so it cannot be a receiver", gotypes.TypeNameOf(owner).Name())
discover.go#L740: Name: gotypes.TypeNameOf(owner).Name() + "." + obj.Name(),
go.pact.im/x/plumb/internal/emit
emit.go#L94: names[tp.Obj().Name()] = true
emit.go#L483: parts = append(parts, tp.Obj().Name()+" "+c)
name.go#L80: return lowerCamel(u.Obj().Name())
name.go#L82: return lowerCamel(u.Obj().Name())
name.go#L94: return lowerCamel(u.Obj().Name())
name.go#L105: return lowerCamel(fn.Name()) + "Cleanup"
render.go#L33: b.WriteString(p.Fn.Name())
go.pact.im/x/plumb/internal/gotypes
cmp.go#L133: if c := strings.Compare(a.Obj().Name(), b.Obj().Name()); c != 0 {
cmp.go#L226: return strings.Compare(a.Name(), b.Name())
subst.go#L64: methods = append(methods, types.NewFunc(mth.Pos(), mth.Pkg(), mth.Name(), sig))
subst.go#L82: fields[i] = types.NewField(f.Pos(), f.Pkg(), f.Name(), s.subst(f.Type()), f.Embedded())
subst.go#L116: vars[i] = types.NewVar(v.Pos(), v.Pkg(), v.Name(), s.subst(v.Type()))
go.pact.im/x/plumb/internal/solve
checks.go#L47: return diag.Errorf(p.Pos, diag.ErrUnreachableType, "type argument %s of provider %s, from package %q (%s is unexported)", gotypes.TypeName(ta), p.Name, obj.Pkg().Path(), obj.Name())
checks.go#L54: return diag.Errorf(p.Pos, diag.ErrUnreachableType, "conversion target type %s from package %q (%s is unexported)", gotypes.TypeName(p.ConvertTo), obj.Pkg().Path(), obj.Name())
checks.go#L65: return diag.Errorf(pl.pos, diag.ErrUnreachableType, "injector input type %s, from package %q (%s is unexported)", gotypes.TypeName(t), obj.Pkg().Path(), obj.Name())
checks.go#L73: return diag.Errorf(pl.pos, diag.ErrUnreachableType, "injector output type %s, from package %q (%s is unexported)", gotypes.TypeName(t), obj.Pkg().Path(), obj.Name())
checks.go#L87: return diag.Errorf(pl.pos, diag.ErrInvalidType, "lifted type parameter %s has a constraint that does not type-check", tp.Obj().Name())
checks.go#L90: return diag.Errorf(pl.pos, diag.ErrUnreachableType, "lifted type parameter %s has a constraint from package %q (%s is unexported)", tp.Obj().Name(), obj.Pkg().Path(), obj.Name())
instance.go#L128: in.Inputs = append(in.Inputs, InputSlot{typ: f.Type(), Name: f.Name()})
instance.go#L167: if m.Name() == p.Fn.Name() {
instance.go#L171: panic(fmt.Sprintf("plumb: method %s of provider %s vanished after instantiation", p.Fn.Name(), p.Name))
instance.go#L173: m := lookupMethod(owner.(*types.Named), p.Fn.Name())
instance.go#L175: panic(fmt.Sprintf("plumb: method %s of provider %s vanished after instantiation", p.Fn.Name(), p.Name))
instance.go#L199: if f.Name() == p.Sym.Name() {
instance.go#L239: in.Inputs = append(in.Inputs, InputSlot{typ: v.Type(), Name: v.Name()})
instance.go#L270: if m.Name() == name {
lift.go#L55: name := s.freshLiftedName(orig.Obj().Name())
lift.go#L81: delete(s.liftedNames, m.tp.Obj().Name())
golang.org/x/exp/apidiff
apidiff.go#L173: newobj := d.new.Scope().Lookup(oldn.Obj().Name())
compatibility.go#L121: d.incompatible(objectWithSide{otn, false}, u.Name(), "added unexported method")
compatibility.go#L169: m[f.Name()] = f
compatibility.go#L231: name := f.Name()
compatibility.go#L288: msname := otn.Name()
correspondence.go#L151: return of.Name() == nf.Name()
correspondence.go#L208: return oobj.Name() == nobj.Name() && opath == npath
correspondence.go#L287: return m.Name()
golang.org/x/tools/go/types/objectpath
objectpath.go#L702: name := named.Obj().Name()
golang.org/x/tools/go/types/typeutil
map.go#L244: hash += hashString(f.Name()) // (ignore f.Pkg)
map.go#L286: hash += 3*hashString(m.Name()) + 5*h.shallowHash(m.Type())
golang.org/x/tools/internal/gcimporter
iexport.go#L741: w.tparamList(obj.Name(), tparams, obj.Pkg())
iexport.go#L782: w.tparamList(obj.Name(), tparams, obj.Pkg())
iexport.go#L809: w.tparamList(obj.Name(), named.TypeParams(), obj.Pkg())
iexport.go#L824: w.string(m.Name())
iexport.go#L827: w.tparamList(obj.Name()+"."+m.Name(), sig.TypeParams(), obj.Pkg())
iexport.go#L833: prefix := obj.Name() + "." + m.Name()
iexport.go#L1116: w.string(f.Name()) // unexported fields implicitly qualified by prior setPkg
iexport.go#L1150: w.string(m.Name())
iexport.go#L1261: name := tparam.Obj().Name()
ureader.go#L592: methods[i] = types.NewFunc(fn.Pos(), fn.Pkg(), fn.Name(), types.NewSignatureType(recv, nil, nil, sig.Params(), sig.Results(), sig.Variadic()))
golang.org/x/tools/internal/typesinternal
fx.go#L80: switch b.Name() {
isnamed.go#L24: slices.Contains(names, tname.Name())
isnamed.go#L52: slices.Contains(names, f.Name())
isnamed.go#L67: slices.Contains(names, fn.Name())
zerovalue.go#L187: ast.NewIdent(t.Obj().Name()),
zerovalue.go#L263: if v.Name() != "" {
zerovalue.go#L264: names = []*ast.Ident{ast.NewIdent(v.Name())}
zerovalue.go#L293: return ast.NewIdent(t.Obj().Name())
zerovalue.go#L297: Sel: ast.NewIdent(t.Obj().Name()),
zerovalue.go#L305: var expr ast.Expr = ast.NewIdent(t.Obj().Name())