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 pkgName string // package name for the package
82 types []reflect.Type // frame layout, may be shared by same level scopes
83 … int // frame level: number of frame indirections to access var during execution
84 sym map[string]*symbol // map of symbols defined in this current scope
85 … // true if scope refers to global space (single frame for universe and package level scopes)
86 iota int // iota value in this scope
90 func (s *scope) push(indirect bool) *scope {
108 func (s *scope) pushBloc() *scope { return s.push(false) }
109 func (s *scope) pushFunc() *scope { return s.push(true) }
111 func (s *scope) pop() *scope {
119 func (s *scope) upperLevel() *scope {
130 func (s *scope) lookup(ident string) (*symbol, int, bool) {
149 func (s *scope) lookdown(ident string) (*symbol, bool) {
161 func (s *scope) rangeChanType(n *node) *itype {
190 func (s *scope) fixType(t *itype) *itype {
207 func (s *scope) getType(ident string) *itype {
235 if _, ok := interp.scopes[pkgID]; !ok {