type go/ast.Scope
34 uses
go/ast (current package)
ast.go#L1038: Scope *Scope // package scope (this file only)
ast.go#L1057: Scope *Scope // package scope across all files
resolve.go#L29: func (p *pkgBuilder) declare(scope, altScope *Scope, obj *Object) {
resolve.go#L44: func resolve(scope *Scope, ident *Ident) bool {
resolve.go#L74: func NewPackage(fset *token.FileSet, files map[string]*File, importer Importer, universe *Scope) (*Package, error) {
resolve.go#L136: for _, obj := range pkg.Data.(*Scope).Objects {
scope.go#L19: type Scope struct {
scope.go#L20: Outer *Scope
scope.go#L25: func NewScope(outer *Scope) *Scope {
scope.go#L27: return &Scope{outer, make(map[string]*Object, n)}
scope.go#L34: func (s *Scope) Lookup(name string) *Object {
scope.go#L43: func (s *Scope) Insert(obj *Object) (alt *Object) {
scope.go#L51: func (s *Scope) String() string {
scope.go#L130: case *Scope:
go/parser
parser.go#L62: pkgScope *ast.Scope // pkgScope.Outer == nil
parser.go#L63: topScope *ast.Scope // top-most scope; may be pkgScope
parser.go#L69: labelScope *ast.Scope // label scope for current function
parser.go#L119: func (p *parser) declare(decl, data interface{}, scope *ast.Scope, kind ast.ObjKind, idents ...*ast.Ident) {
parser.go#L704: func (p *parser) parseFieldDecl(scope *ast.Scope) *ast.Field {
parser.go#L824: func (p *parser) parseParameterList(scope *ast.Scope, ellipsisOk bool) (params []*ast.Field) {
parser.go#L883: func (p *parser) parseParameters(scope *ast.Scope, ellipsisOk bool) *ast.FieldList {
parser.go#L898: func (p *parser) parseResult(scope *ast.Scope) *ast.FieldList {
parser.go#L917: func (p *parser) parseSignature(scope *ast.Scope) (params, results *ast.FieldList) {
parser.go#L928: func (p *parser) parseFuncType() (*ast.FuncType, *ast.Scope) {
parser.go#L940: func (p *parser) parseMethodSpec(scope *ast.Scope) *ast.Field {
parser.go#L1086: func (p *parser) parseBody(scope *ast.Scope) *ast.BlockStmt {
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L2584: func encode_ast_Scope(e *codec.Encoder, x *ast.Scope) {
encode_ast.gen.go#L2599: func decode_ast_Scope(d *codec.Decoder, p **ast.Scope) {
encode_ast.gen.go#L2605: *p = ref.(*ast.Scope)
encode_ast.gen.go#L2608: var x ast.Scope
encode_ast.gen.go#L2628: codec.Register(&ast.Scope{},
encode_ast.gen.go#L2629: func(e *codec.Encoder, x interface{}) { encode_ast_Scope(e, x.(*ast.Scope)) },
encode_ast.gen.go#L2631: var x *ast.Scope
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |