Lines Matching defs:scope
7 type scope struct { struct
9 pkgname string
10 parent *scope // nil for universe scope
11 entities map[string]*decl
14 func new_named_scope(outer *scope, name string) *scope {
20 func new_scope(outer *scope) *scope {
31 func advance_scope(s *scope) (*scope, *scope) {
39 func (s *scope) add_named_decl(d *decl) *decl {
43 func (s *scope) add_decl(name string, d *decl) *decl {
52 func (s *scope) replace_decl(name string, d *decl) {
56 func (s *scope) merge_decl(d *decl) {
67 func (s *scope) lookup(name string) *decl {