type go/types.Object
149 uses
go/types (current package)
api.go#L256: Defs map[*ast.Ident]Object
api.go#L263: Uses map[*ast.Ident]Object
api.go#L274: Implicits map[ast.Node]Object
api.go#L355: func (info *Info) ObjectOf(id *ast.Ident) Object {
api.go#L369: var obj Object
call.go#L689: obj Object
call.go#L707: var exp Object
check.go#L62: func (env *environment) lookupScope(name string) (*Scope, Object) {
check.go#L72: func (env *environment) lookup(name string) Object {
check.go#L127: objMap map[Object]*declInfo // maps package-level objects and (non-interface) methods to declaration info
check.go#L128: objList []Object // source-ordered keys of objMap
check.go#L160: objPath []Object // path of object dependencies during type-checking (for cycle reporting)
check.go#L161: objPathIdx map[Object]int // map of object to object path index during type-checking (for cycle reporting)
check.go#L174: func (check *Checker) addDeclDep(to Object) {
check.go#L207: func (check *Checker) push(obj Object) {
check.go#L209: check.objPathIdx = make(map[Object]int)
check.go#L259: objMap: make(map[Object]*declInfo),
cycles.go#L62: var cycle []Object
cycles.go#L113: obj 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#L254: func (check *Checker) cycleError(cycle []Object, start int) {
decl.go#L259: name := func(obj Object) string {
decl.go#L303: 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 {
lookup.go#L88: func LookupFieldOrMethod(T Type, addressable bool, pkg *Package, name string) (obj Object, index []int, indirect bool) {
lookup.go#L97: func lookupFieldOrMethod(T Type, addressable bool, pkg *Package, name string, foldCase bool) (obj Object, index []int, indirect bool) {
lookup.go#L147: 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#L520: func writeObject(buf *bytes.Buffer, obj Object, qf Qualifier) {
object.go#L641: func ObjectString(obj Object, qf Qualifier) string {
object.go#L680: 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#L158: func (check *Checker) recordDef(id *ast.Ident, obj Object) {
recording.go#L165: func (check *Checker) recordUse(id *ast.Ident, obj Object) {
recording.go#L173: func (check *Checker) recordImplicit(node ast.Node, obj Object) {
recording.go#L181: 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#L503: check.objList = make([]Object, len(check.objMap))
resolver.go#L509: slices.SortFunc(check.objList, func(a, b Object) int {
resolver.go#L669: 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 { return resolve(name, s.elems[name]) }
scope.go#L78: func (s *Scope) lookupIgnoringCase(name string, exported bool) []Object {
scope.go#L79: var matches []Object
scope.go#L93: func (s *Scope) Insert(obj Object) Object {
scope.go#L117: func (s *Scope) _InsertLazy(name string, resolve func() Object) bool {
scope.go#L125: func (s *Scope) insert(name string, obj Object) {
scope.go#L127: s.elems = make(map[string]Object)
scope.go#L168: resolve func() Object
scope.go#L169: obj Object
scope.go#L175: 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#L31: universeAny Object
universe.go#L32: universeComparable Object
universe.go#L262: 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#L147: isDefinedType := func(obj types.Object) bool {
apidiff.go#L235: func (d *differ) checkObjects(old, new types.Object) {
apidiff.go#L287: func objectKindString(obj types.Object) string {
compatibility.go#L166: func exportedFields(s *types.Struct) map[string]types.Object {
compatibility.go#L167: m := map[string]types.Object{}
compatibility.go#L182: func exportedSelectableFields(s *types.Struct) map[string]types.Object {
compatibility.go#L184: m = map[string]types.Object{}
compatibility.go#L249: func (d *differ) checkCompatibleObjectSets(obj objectWithSide, old, new map[string]types.Object) {
compatibility.go#L346: func exportedMethods(t types.Type) map[string]types.Object {
compatibility.go#L347: m := map[string]types.Object{}
compatibility.go#L358: func receiverType(method types.Object) types.Type {
compatibility.go#L362: func receiverNamedType(method types.Object) *types.Named {
compatibility.go#L373: func hasPointerReceiver(method types.Object) bool {
messageset.go#L15: object types.Object
messageset.go#L68: 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#L138: target types.Object // the sought symbol (if ix == nil)
objectpath.go#L189: offsets map[types.Object]uint32 // each object's node offset within encoded traversal data
objectpath.go#L237: func (enc *Encoder) For(obj types.Object) (Path, error) {
objectpath.go#L352: ix.offsets = make(map[types.Object]uint32)
objectpath.go#L545: func (tr *traversal) object(path []byte, offset uint32, op byte, index int, obj types.Object) {
objectpath.go#L738: func Object(pkg *types.Package, p Path) (types.Object, error) {
golang.org/x/tools/go/types/typeutil
callee.go#L22: func Callee(info *types.Info, call *ast.CallExpr) types.Object {
golang.org/x/tools/internal/gcimporter
iexport.go#L352: declIndex: map[types.Object]uint64{},
iexport.go#L353: tparamNames: map[types.Object]string{},
iexport.go#L474: func (w *exportWriter) writeIndex(index map[types.Object]uint64) {
iexport.go#L476: obj types.Object
iexport.go#L527: func (p *iexporter) exportName(obj types.Object) (res string) {
iexport.go#L559: declIndex map[types.Object]uint64
iexport.go#L560: tparamNames map[types.Object]string // typeparam->exported name
iexport.go#L625: func (p *iexporter) pushDecl(obj types.Object) {
iexport.go#L662: func (p *iexporter) doDecl(obj types.Object) {
iexport.go#L1158: func (w *exportWriter) objectPath(obj types.Object) {
iexport.go#L1259: func (w *exportWriter) param(obj types.Object) {
iexport.go#L1477: func (w *exportWriter) localIdent(obj types.Object) {
iexport.go#L1520: ring []types.Object
iexport.go#L1530: func (q *objQueue) pushTail(obj types.Object) {
iexport.go#L1532: q.ring = make([]types.Object, 16)
iexport.go#L1535: nring := make([]types.Object, len(q.ring)*2)
iexport.go#L1553: func (q *objQueue) popHead() types.Object {
iimport.go#L656: func (r *importReader) declare(obj types.Object) {
iimport.go#L1009: func (r *importReader) objectPathObject() types.Object {
ureader.go#L483: func (r *reader) obj() (types.Object, []types.Type) {
ureader.go#L538: declare := func(obj types.Object) {
golang.org/x/tools/internal/typesinternal
classify_call.go#L159: func Callee(info *types.Info, call *ast.CallExpr) types.Object {
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#L18: func TooNewStdSymbols(pkg *types.Package, version string) map[types.Object]stdlib.Symbol {
toonew.go#L19: disallowed := make(map[types.Object]stdlib.Symbol)
toonew.go#L74: depth := make(map[types.Object]int)
toonew.go#L80: 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 {