Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for walkBody (0.08 sec)

  1. src/go/parser/resolver.go

    	}
    
    	switch n := node.(type) {
    
    	// Expressions.
    	case *ast.Ident:
    		r.resolve(n, true)
    
    	case *ast.FuncLit:
    		r.openScope(n.Pos())
    		defer r.closeScope()
    		r.walkFuncType(n.Type)
    		r.walkBody(n.Body)
    
    	case *ast.SelectorExpr:
    		ast.Walk(r, n.X)
    		// Note: don't try to resolve n.Sel, as we don't support qualified
    		// resolution.
    
    	case *ast.StructType:
    		r.openScope(n.Pos())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  2. src/cmd/cover/cover.go

    				t = p.X
    				star = "*"
    			}
    			if p, _ := t.(*ast.Ident); p != nil {
    				fname = star + p.Name + "." + fname
    			}
    		}
    		walkBody := true
    		if *pkgcfg != "" {
    			f.preFunc(n, fname)
    			if pkgconfig.Granularity == "perfunc" {
    				walkBody = false
    			}
    		}
    		if walkBody {
    			ast.Walk(f, n.Body)
    		}
    		if *pkgcfg != "" {
    			flit := false
    			f.postFunc(n, fname, flit, n.Body)
    		}
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/expr.go

    	case ir.OAPPEND:
    		// order should make sure we only see OAS(node, OAPPEND), which we handle above.
    		base.Fatalf("append outside assignment")
    		panic("unreachable")
    
    	case ir.OCOPY:
    		return walkCopy(n.(*ir.BinaryExpr), init, base.Flag.Cfg.Instrumenting && !base.Flag.CompilingRuntime)
    
    	case ir.OCLEAR:
    		n := n.(*ir.UnaryExpr)
    		return walkClear(n)
    
    	case ir.OCLOSE:
    		n := n.(*ir.UnaryExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/builtin.go

    //
    //	init {
    //	  n := len(a)
    //	  if n > len(b) { n = len(b) }
    //	  if a.ptr != b.ptr { memmove(a.ptr, b.ptr, n*sizeof(elem(a))) }
    //	}
    //	n;
    //
    // Also works if b is a string.
    func walkCopy(n *ir.BinaryExpr, init *ir.Nodes, runtimecall bool) ir.Node {
    	if n.X.Type().Elem().HasPointers() {
    		ir.CurFunc.SetWBPos(n.Pos())
    		fn := writebarrierfn("typedslicecopy", n.X.Type().Elem(), n.Y.Type().Elem())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top