go/types.Object.Name (method)
38 uses
go/types (current package)
decl.go#L19: check.errorf(obj, _DuplicateDecl, "\tother declaration of %s", obj.Name()) // secondary error, \t indented
decl.go#L28: if obj.Name() != "_" {
decl.go#L30: check.errorf(obj, _DuplicateDecl, "%s redeclared in this block", obj.Name())
decl.go#L48: s += p.Name()
decl.go#L267: check.trace(obj.Pos(), "## cycle detected: objPath = %s->%s (len = %d)", pathString(cycle), obj.Name(), len(cycle))
decl.go#L316: check.errorf(obj, _InvalidDeclCycle, "invalid recursive type %s", obj.Name())
decl.go#L318: check.errorf(obj, _InvalidDeclCycle, "illegal cycle in declaration of %s", obj.Name())
decl.go#L321: check.errorf(obj, _InvalidDeclCycle, "\t%s refers to", obj.Name()) // secondary error, \t indented
decl.go#L328: check.errorf(obj, _InvalidDeclCycle, "\t%s", obj.Name())
initorder.go#L32: fmt.Printf("\t%s depends on\n", obj.Name())
initorder.go#L34: fmt.Printf("\t\t%s\n", dep.Name())
initorder.go#L37: fmt.Printf("\t%s has no dependencies\n", obj.Name())
initorder.go#L45: fmt.Printf("\t%s depends on %d nodes\n", n.obj.Name(), n.ndeps)
initorder.go#L47: fmt.Printf("\t\t%s is dependent\n", p.obj.Name())
initorder.go#L68: n.obj.Name(), n.obj.order(), n.ndeps)
initorder.go#L155: check.errorf(obj, _InvalidInitCycle, "initialization cycle for %s", obj.Name())
initorder.go#L158: check.errorf(obj, _InvalidInitCycle, "\t%s refers to", obj.Name()) // secondary error, \t indented
initorder.go#L162: check.errorf(obj, _InvalidInitCycle, "\t%s", obj.Name())
object.go#L22: Name() string // package local object name
object.go#L454: if obj.Pkg() != nil && obj.Pkg().scope.Lookup(obj.Name()) == obj {
object.go#L457: buf.WriteString(obj.Name())
resolver.go#L104: assert(ident.Name == obj.Name())
resolver.go#L325: check.errorf(d.spec.Name, _DuplicateDecl, "%s redeclared in this block", alt.Name())
resolver.go#L462: check.errorf(alt, _DuplicateDecl, "%s already declared through import of %s", alt.Name(), pkg.Imported())
resolver.go#L465: check.errorf(alt, _DuplicateDecl, "%s already declared through dot-import of %s", alt.Name(), obj.Pkg())
scope.go#L100: name := obj.Name()
scope.go#L260: if obj.Name() != name {
selection.go#L135: fmt.Fprintf(&buf, ") %s", s.obj.Name())
signature.go#L184: check.errorf(obj, _DuplicateDecl, "%s redeclared in this block", obj.Name())
struct.go#L200: check.errorf(atPos(pos), _DuplicateDecl, "%s redeclared", obj.Name())
typexpr.go#L72: if pkgName := check.dotImportMap[dotImportKey{scope, obj.Name()}]; pkgName != nil {
universe.go#L252: name := obj.Name()
golang.org/x/exp/apidiff
compatibility.go#L340: m[obj.Name()] = obj
messageset.go#L65: return fmt.Sprintf("%s.%s", tn, obj.Name())
messageset.go#L68: return obj.Name()
golang.org/x/tools/internal/gcimporter
bexport.go#L294: p.string(obj.Name())
iexport.go#L308: return obj.Name()
iexport.go#L1104: name := obj.Name()