type go/ast.Object
21 uses
go/ast (current package)
ast.go#L290: Obj *Object // denoted object, or nil. Deprecated: see Object.
ast.go#L1091: Imports map[string]*Object // map of package id -> package object
resolve.go#L29: func (p *pkgBuilder) declare(scope, altScope *Scope, obj *Object) {
resolve.go#L65: type Importer func(imports map[string]*Object, path string) (pkg *Object, err error)
resolve.go#L101: imports := make(map[string]*Object)
scope.go#L22: Objects map[string]*Object
scope.go#L28: return &Scope{outer, make(map[string]*Object, n)}
scope.go#L34: func (s *Scope) Lookup(name string) *Object {
scope.go#L42: func (s *Scope) Insert(obj *Object) (alt *Object) {
scope.go#L87: type Object struct {
scope.go#L96: func NewObj(kind ObjKind, name string) *Object {
scope.go#L97: return &Object{Kind: kind, Name: name}
scope.go#L103: func (obj *Object) Pos() token.Pos {
go/doc
doc.go#L261: func simpleImporter(imports map[string]*ast.Object, path string) (*ast.Object, error) {
example.go#L163: topDecls := make(map[*ast.Object]ast.Decl)
example.go#L335: func findDeclsAndUnresolved(body ast.Node, topDecls map[*ast.Object]ast.Decl, typMethods map[string][]ast.Decl) ([]ast.Decl, map[string]bool) {
example.go#L344: usedObjs := make(map[*ast.Object]bool) // set of objects reachable from the body (each declared by a usedDecl)
go/parser
resolver.go#L190: var unresolved = new(ast.Object)