Lines Matching defs:scope
92 type scope struct { struct
93 file *ast.File
94 outer *scope
95 node ast.Node
96 index map[string]entry
97 inField bool
99 identFn func(s *scope, n *ast.Ident) bool
100 nameFn func(name string)
101 errFn func(p token.Pos, msg string, args ...interface{})
109 func newScope(f *ast.File, outer *scope, node ast.Node, decls []ast.Decl) *scope {
166 func (s *scope) isLet(n ast.Node) bool {
177 func (s *scope) mustBeUnique(n ast.Node) bool {
190 func (s *scope) insert(name string, n, link ast.Node) {
224 func (s *scope) resolveScope(name string, node ast.Node) (scope ast.Node, e entry, ok bool) {
238 func (s *scope) lookup(name string) (p *scope, obj ast.Node, node entry) {
254 func (s *scope) After(n ast.Node) {}
255 func (s *scope) Before(n ast.Node) (w visitor) {
386 func resolveIdent(s *scope, x *ast.Ident) bool {
414 func scopeClauses(s *scope, clauses []ast.Clause) *scope {
447 func (s *scope) String() string {