Lines Matching defs:scope
74 type scope struct { struct
75 anc *scope // ancestor upper scope
76 child []*scope // included scopes
77 def *node // function definition node this scope belongs to, or nil
78 loop *node // loop exit node for break statement
79 loopRestart *node // loop restart node for continue statement
80 pkgID string // unique id of package in which scope is defined
81 types []reflect.Type // frame layout, may be shared by same level scopes
82 … int // frame level: number of frame indirections to access var during execution
83 sym map[string]*symbol // map of symbols defined in this current scope
84 … // true if scope refers to global space (single frame for universe and package level scopes)
85 iota int // iota value in this scope
89 func (s *scope) push(indirect bool) *scope {
107 func (s *scope) pushBloc() *scope { return s.push(false) }
108 func (s *scope) pushFunc() *scope { return s.push(true) }
110 func (s *scope) pop() *scope {
118 func (s *scope) upperLevel() *scope {
129 func (s *scope) lookup(ident string) (*symbol, int, bool) {
148 func (s *scope) lookdown(ident string) (*symbol, bool) {
160 func (s *scope) rangeChanType(n *node) *itype {
182 func (s *scope) fixType(t *itype) *itype {
199 func (s *scope) getType(ident string) *itype {
227 if _, ok := interp.scopes[pkgID]; !ok {