Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 223 for recvs (0.07 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/util.go

    func isMethodNamed(f *types.Func, pkgPath string, names ...string) bool {
    	if f == nil {
    		return false
    	}
    	if f.Pkg() == nil || f.Pkg().Path() != pkgPath {
    		return false
    	}
    	if f.Type().(*types.Signature).Recv() == nil {
    		return false
    	}
    	for _, n := range names {
    		if f.Name() == n {
    			return true
    		}
    	}
    	return false
    }
    
    func funcIdent(fun ast.Expr) *ast.Ident {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    			}
    			if !cas.recv.IsValid() {
    				t.Fatalf("%s\nselected #%d but internal error: missing recv value", fmtSelect(info), i)
    			}
    			if recv.Interface() != cas.recv.Interface() || recvOK != !cas.closed {
    				if recv.Interface() == cas.recv.Interface() && recvOK == !cas.closed {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. src/go/ast/walk.go

    		// nothing to do
    
    	case *GenDecl:
    		if n.Doc != nil {
    			Walk(v, n.Doc)
    		}
    		walkList(v, n.Specs)
    
    	case *FuncDecl:
    		if n.Doc != nil {
    			Walk(v, n.Doc)
    		}
    		if n.Recv != nil {
    			Walk(v, n.Recv)
    		}
    		Walk(v, n.Name)
    		Walk(v, n.Type)
    		if n.Body != nil {
    			Walk(v, n.Body)
    		}
    
    	// Files and packages
    	case *File:
    		if n.Doc != nil {
    			Walk(v, n.Doc)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/assign.go

    	default:
    		as.Y = walkExpr(as.Y, init)
    
    	case ir.ORECV:
    		// x = <-c; as.Left is x, as.Right.Left is c.
    		// order.stmt made sure x is addressable.
    		recv := as.Y.(*ir.UnaryExpr)
    		recv.X = walkExpr(recv.X, init)
    
    		n1 := typecheck.NodAddr(as.X)
    		r := recv.X // the channel
    		return mkcall1(chanfn("chanrecv1", 2, r.Type()), nil, init, r, n1)
    
    	case ir.OAPPEND:
    		// x = append(...)
    		call := as.Y.(*ir.CallExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. src/cmd/fix/typecheck.go

    			continue
    		}
    		typecheck1(cfg, fn.Type, typeof, assign)
    		t := typeof[fn.Type]
    		if fn.Recv != nil {
    			// The receiver must be a type.
    			rcvr := typeof[fn.Recv]
    			if !isType(rcvr) {
    				if len(fn.Recv.List) != 1 {
    					continue
    				}
    				rcvr = mkType(gofmt(fn.Recv.List[0].Type))
    				typeof[fn.Recv.List[0].Type] = rcvr
    			}
    			rcvr = getType(rcvr)
    			if rcvr != "" && rcvr[0] == '*' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  6. src/go/doc/example.go

    	typMethods := make(map[string][]ast.Decl)
    
    	for _, decl := range file.Decls {
    		switch d := decl.(type) {
    		case *ast.FuncDecl:
    			if d.Recv == nil {
    				topDecls[d.Name.Obj] = d
    			} else {
    				if len(d.Recv.List) == 1 {
    					t := d.Recv.List[0].Type
    					tname, _ := baseTypeName(t)
    					typMethods[tname] = append(typMethods[tname], d)
    				}
    			}
    		case *ast.GenDecl:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/universe.go

    	{
    		obj := NewTypeName(nopos, nil, "error", nil)
    		obj.setColor(black)
    		typ := NewNamed(obj, nil, nil)
    
    		// error.Error() string
    		recv := NewVar(nopos, nil, "", typ)
    		res := NewVar(nopos, nil, "", Typ[String])
    		sig := NewSignatureType(recv, nil, nil, nil, NewTuple(res), false)
    		err := NewFunc(nopos, nil, "Error", sig)
    
    		// interface{ Error() string }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. src/go/types/universe.go

    	{
    		obj := NewTypeName(nopos, nil, "error", nil)
    		obj.setColor(black)
    		typ := NewNamed(obj, nil, nil)
    
    		// error.Error() string
    		recv := NewVar(nopos, nil, "", typ)
    		res := NewVar(nopos, nil, "", Typ[String])
    		sig := NewSignatureType(recv, nil, nil, nil, NewTuple(res), false)
    		err := NewFunc(nopos, nil, "Error", sig)
    
    		// interface{ Error() string }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/serviceentry/util_test.go

    		{Namespace: "default", Name: "se-1"}: &se1,
    		{Namespace: "default", Name: "se-3"}: &se3,
    	}
    	got := getWorkloadServiceEntries(ses, wle)
    	if !reflect.DeepEqual(got, expected) {
    		t.Errorf("recv unexpected se: %v", got)
    	}
    }
    
    func TestCompareServiceEntries(t *testing.T) {
    	oldSes := map[types.NamespacedName]*config.Config{
    		{Namespace: "default", Name: "se-1"}: {},
    		{Namespace: "default", Name: "se-2"}: {},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 17 22:32:10 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. src/cmd/doc/pkg.go

    		}
    		return ""
    
    	case *ast.FuncDecl:
    		// Formats func declarations.
    		name := n.Name.Name
    		recv := pkg.oneLineNodeDepth(n.Recv, depth)
    		if len(recv) > 0 {
    			recv = "(" + recv + ") "
    		}
    		fnc := pkg.oneLineNodeDepth(n.Type, depth)
    		fnc = strings.TrimPrefix(fnc, "func")
    		return fmt.Sprintf("func %s%s%s", recv, name, fnc)
    
    	case *ast.TypeSpec:
    		sep := " "
    		if n.Assign.IsValid() {
    			sep = " = "
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top