- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for pkgScope (0.07 sec)
-
src/go/parser/resolver.go
// resolution. tok is used to format position in error messages. func resolveFile(file *ast.File, handle *token.File, declErr func(token.Pos, string)) { pkgScope := ast.NewScope(nil) r := &resolver{ handle: handle, declErr: declErr, topScope: pkgScope, pkgScope: pkgScope, depth: 1, } for _, decl := range file.Decls { ast.Walk(r, decl) } r.closeScope()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 12:56:53 UTC 2023 - 15.8K bytes - Viewed (0) -
src/go/internal/gcimporter/ureader.go
func (r *reader) ident(marker pkgbits.SyncMarker) (*types.Package, string) { r.Sync(marker) return r.pkg(), r.String() } // pkgScope returns pkg.Scope(). // If pkg is nil, it returns types.Universe instead. // // TODO(mdempsky): Remove after x/tools can depend on Go 1.19. func pkgScope(pkg *types.Package) *types.Scope { if pkg != nil { return pkg.Scope() } return types.Universe }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.6K bytes - Viewed (0)