type go/types.Object
145 uses
go/types (current package)
api.go#L266: Defs map[*ast.Ident]Object
api.go#L273: Uses map[*ast.Ident]Object
api.go#L284: Implicits map[ast.Node]Object
api.go#L365: func (info *Info) ObjectOf(id *ast.Ident) Object {
api.go#L379: var obj Object
call.go#L677: obj Object
call.go#L695: var exp Object
check.go#L100: func (env *environment) lookupScope(name string) (*Scope, Object) {
check.go#L110: func (env *environment) lookup(name string) Object {
check.go#L165: objMap map[Object]*declInfo // maps package-level objects and (non-interface) methods to declaration info
check.go#L166: objList []Object // source-ordered keys of objMap
check.go#L198: objPath []Object // path of object dependencies during type-checking (for cycle reporting)
check.go#L199: objPathIdx map[Object]int // map of object to object path index during type-checking (for cycle reporting)
check.go#L212: func (check *Checker) addDeclDep(to Object) {
check.go#L273: func (check *Checker) push(obj Object) {
check.go#L275: check.objPathIdx = make(map[Object]int)
check.go#L328: objMap: make(map[Object]*declInfo),
cycles.go#L62: var cycle []Object
decl.go#L16: func (check *Checker) declare(scope *Scope, id *ast.Ident, obj Object, pos token.Pos) {
decl.go#L37: func pathString(path []Object) string {
decl.go#L49: func (check *Checker) objDecl(obj Object) {
decl.go#L171: func (check *Checker) validCycle(obj Object) (valid bool) {
decl.go#L273: func (check *Checker) cycleError(cycle []Object, start int) {
decl.go#L278: name := func(obj Object) string {
decl.go#L324: func firstInSrc(path []Object) int {
errors.go#L65: func (err *error_) addAltDecl(obj Object) {
errsupport.go#L15: func (check *Checker) lookupError(typ Type, sel string, obj Object, structLit bool) string {
format.go#L50: case Object:
initorder.go#L79: cycle := findPath(check.objMap, n.obj, n.obj, make(map[Object]bool))
initorder.go#L140: func findPath(objMap map[Object]*declInfo, from, to Object, seen map[Object]bool) []Object {
initorder.go#L147: var deps []Object
initorder.go#L157: return []Object{d}
initorder.go#L168: func (check *Checker) reportCycle(cycle []Object) {
initorder.go#L196: Object
initorder.go#L229: func dependencyGraph(objMap map[Object]*declInfo) []*graphNode {
literals.go#L178: var alt Object
lookup.go#L85: func LookupFieldOrMethod(T Type, addressable bool, pkg *Package, name string) (obj Object, index []int, indirect bool) {
lookup.go#L94: func lookupFieldOrMethod(T Type, addressable bool, pkg *Package, name string, foldCase bool) (obj Object, index []int, indirect bool) {
lookup.go#L144: func lookupFieldOrMethodImpl(T Type, addressable bool, pkg *Package, name string, foldCase bool) (obj Object, index []int, indirect bool) {
object.go#L29: type Object interface {
object.go#L519: func writeObject(buf *bytes.Buffer, obj Object, qf Qualifier) {
object.go#L640: func ObjectString(obj Object, qf Qualifier) string {
object.go#L679: func objectKind(obj Object) string {
objset.go#L18: type objset map[string]Object // initialized lazily
objset.go#L24: func (s *objset) insert(obj Object) Object {
objset.go#L30: *s = make(map[string]Object)
recording.go#L141: func (check *Checker) recordDef(id *ast.Ident, obj Object) {
recording.go#L148: func (check *Checker) recordUse(id *ast.Ident, obj Object) {
recording.go#L156: func (check *Checker) recordImplicit(node ast.Node, obj Object) {
recording.go#L164: func (check *Checker) recordSelection(x *ast.SelectorExpr, kind SelectionKind, recv Type, obj Object, index []int, indirect bool) {
resolver.go#L32: deps map[Object]bool // lazily initialized
resolver.go#L42: func (d *declInfo) addDep(obj Object) {
resolver.go#L45: m = make(map[Object]bool)
resolver.go#L105: func (check *Checker) declarePkgObj(ident *ast.Ident, obj Object, d *declInfo) {
resolver.go#L504: check.objList = make([]Object, len(check.objMap))
resolver.go#L510: slices.SortFunc(check.objList, func(a, b Object) int {
resolver.go#L671: var othersList []Object // everything that's not a type
scope.go#L29: elems map[string]Object // lazily allocated
scope.go#L73: func (s *Scope) Lookup(name string) Object {
scope.go#L92: func (s *Scope) lookupIgnoringCase(name string, exported bool) []Object {
scope.go#L93: var matches []Object
scope.go#L107: func (s *Scope) Insert(obj Object) Object {
scope.go#L131: func (s *Scope) _InsertLazy(name string, resolve func() Object) bool {
scope.go#L139: func (s *Scope) insert(name string, obj Object) {
scope.go#L141: s.elems = make(map[string]Object)
scope.go#L182: resolve func() Object
scope.go#L183: obj Object
scope.go#L189: func resolve(name string, obj Object) Object {
scope2.go#L24: func (s *Scope) LookupParent(name string, pos token.Pos) (*Scope, Object) {
selection.go#L78: obj Object // object denoted by x.f
selection.go#L91: func (s *Selection) Obj() Object { return s.obj }
struct.go#L200: func (check *Checker) declareInSet(oset *objset, pos token.Pos, obj Object) bool {
universe.go#L26: universeIota Object
universe.go#L33: universeComparable Object
universe.go#L290: func def(obj Object) {
validtype.go#L190: func makeObjList(tlist []*Named) []Object {
validtype.go#L191: olist := make([]Object, len(tlist))
go.pact.im/x/plumb/internal/discover
provider.go#L79: Sym types.Object // KindSymbol (a var or typed const), KindField (the field)
go.pact.im/x/plumb/internal/emit
qual.go#L82: func (q *qualifier) objQual(obj types.Object) string {
go.pact.im/x/plumb/internal/packagestest
packagestest.go#L215: Defs: map[*ast.Ident]types.Object{},
packagestest.go#L216: Uses: map[*ast.Ident]types.Object{},
packagestest.go#L219: Implicits: map[ast.Node]types.Object{},
go.pact.im/x/plumb/internal/solve
checks.go#L98: func crossBoundarySymbol(p *discover.Provider) types.Object {
golang.org/x/exp/apidiff
apidiff.go#L238: func (d *differ) checkObjects(old, new types.Object) {
apidiff.go#L290: func objectKindString(obj types.Object) string {
compatibility.go#L164: func exportedFields(s *types.Struct) map[string]types.Object {
compatibility.go#L165: m := map[string]types.Object{}
compatibility.go#L180: func exportedSelectableFields(s *types.Struct) map[string]types.Object {
compatibility.go#L182: m = map[string]types.Object{}
compatibility.go#L245: func (d *differ) checkCompatibleObjectSets(obj objectWithSide, old, new map[string]types.Object) {
compatibility.go#L334: func exportedMethods(t types.Type) map[string]types.Object {
compatibility.go#L335: m := map[string]types.Object{}
compatibility.go#L346: func receiverType(method types.Object) types.Type {
compatibility.go#L350: func receiverNamedType(method types.Object) *types.Named {
compatibility.go#L361: func hasPointerReceiver(method types.Object) bool {
messageset.go#L18: object types.Object
messageset.go#L71: func objectString(obj types.Object, rootPackagePath string) string {
golang.org/x/tools/go/packages
packages.go#L1338: Defs: make(map[*ast.Ident]types.Object),
packages.go#L1339: Uses: make(map[*ast.Ident]types.Object),
packages.go#L1340: Implicits: make(map[ast.Node]types.Object),
golang.org/x/tools/go/types/objectpath
objectpath.go#L122: func For(obj types.Object) (Path, error) {
objectpath.go#L137: target types.Object // the sought symbol (if ix == nil)
objectpath.go#L188: offsets map[types.Object]uint32 // each object's node offset within encoded traversal data
objectpath.go#L234: func (enc *Encoder) For(obj types.Object) (Path, error) {
objectpath.go#L346: ix.offsets = make(map[types.Object]uint32)
objectpath.go#L539: func (tr *traversal) object(path []byte, offset uint32, op byte, index int, obj types.Object) {
objectpath.go#L727: func Object(pkg *types.Package, p Path) (types.Object, error) {
golang.org/x/tools/go/types/typeutil
callee.go#L21: func Callee(info *types.Info, call *ast.CallExpr) types.Object {
golang.org/x/tools/internal/gcimporter
iexport.go#L362: declIndex: map[types.Object]uint64{},
iexport.go#L363: tparamNames: map[types.Object]string{},
iexport.go#L509: func (w *exportWriter) writeIndex(index map[types.Object]uint64) {
iexport.go#L511: obj types.Object
iexport.go#L562: func (p *iexporter) exportName(obj types.Object) (res string) {
iexport.go#L594: declIndex map[types.Object]uint64
iexport.go#L595: tparamNames map[types.Object]string // typeparam->exported name
iexport.go#L660: func (p *iexporter) pushDecl(obj types.Object) {
iexport.go#L697: func (p *iexporter) doDecl(obj types.Object) {
iexport.go#L1191: func (w *exportWriter) objectPath(obj types.Object) {
iexport.go#L1292: func (w *exportWriter) param(obj types.Object) {
iexport.go#L1506: func (w *exportWriter) localIdent(obj types.Object) {
iexport.go#L1549: ring []types.Object
iexport.go#L1559: func (q *objQueue) pushTail(obj types.Object) {
iexport.go#L1561: q.ring = make([]types.Object, 16)
iexport.go#L1564: nring := make([]types.Object, len(q.ring)*2)
iexport.go#L1582: func (q *objQueue) popHead() types.Object {
iimport.go#L686: func (r *importReader) declare(obj types.Object) {
iimport.go#L1039: func (r *importReader) objectPathObject() types.Object {
ureader.go#L484: func (r *reader) obj() (types.Object, []types.Type) {
ureader.go#L539: declare := func(obj types.Object) {
golang.org/x/tools/internal/typesinternal
isnamed.go#L46: func IsFunctionNamed(obj types.Object, pkgPath string, names ...string) bool {
isnamed.go#L61: func IsMethodNamed(obj types.Object, pkgPath string, typeName string, names ...string) bool {
toonew.go#L19: func TooNewStdSymbols(pkg *types.Package, version string) map[types.Object]string {
toonew.go#L20: disallowed := make(map[types.Object]string)
toonew.go#L69: var obj types.Object
types.go#L153: func IsPackageLevel(obj types.Object) bool {
types.go#L162: Defs: map[*ast.Ident]types.Object{},
types.go#L163: Uses: map[*ast.Ident]types.Object{},
types.go#L164: Implicits: map[ast.Node]types.Object{},
types.go#L202: func ObjectKind(obj types.Object) string {