Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 223 for recvs (0.05 sec)

  1. src/cmd/compile/internal/types2/selection.go

    func (s *Selection) Type() Type {
    	switch s.kind {
    	case MethodVal:
    		// The type of x.f is a method with its receiver type set
    		// to the type of x.
    		sig := *s.obj.(*Func).typ.(*Signature)
    		recv := *sig.recv
    		recv.typ = s.recv
    		sig.recv = &recv
    		return &sig
    
    	case MethodExpr:
    		// The type of x.f is a function (without receiver)
    		// and an additional first argument with the same type as x.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/go/types/selection.go

    func (s *Selection) Type() Type {
    	switch s.kind {
    	case MethodVal:
    		// The type of x.f is a method with its receiver type set
    		// to the type of x.
    		sig := *s.obj.(*Func).typ.(*Signature)
    		recv := *sig.recv
    		recv.typ = s.recv
    		sig.recv = &recv
    		return &sig
    
    	case MethodExpr:
    		// The type of x.f is a function (without receiver)
    		// and an additional first argument with the same type as x.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/webhook/webhook.go

    					revs.InsertAll(ls.Values...)
    				}
    			}
    		}
    		if webhook.ObjectSelector != nil {
    			if r, f := webhook.ObjectSelector.MatchLabels[label.IoIstioRev.Name]; f {
    				revs.Insert(r)
    			}
    
    			for _, ls := range webhook.ObjectSelector.MatchExpressions {
    				if ls.Key == label.IoIstioRev.Name {
    					revs.InsertAll(ls.Values...)
    				}
    			}
    		}
    	}
    	return revs.UnsortedList()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/decorated_watcher.go

    	var recv, send watch.Event
    	var ok bool
    	defer close(d.resultCh)
    	for {
    		select {
    		case recv, ok = <-d.w.ResultChan():
    			if !ok {
    				// The underlying channel was closed, cancel our context
    				d.cancel()
    				return
    			}
    			switch recv.Type {
    			case watch.Added, watch.Modified, watch.Deleted, watch.Bookmark:
    				d.decorator(recv.Object)
    				send = recv
    			case watch.Error:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 02 19:25:31 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  5. cmd/bucket-handlers_test.go

    		// Call the ServeHTTP to execute the handler.
    		apiRouter.ServeHTTP(recV2, reqV2)
    		if recV2.Code != testCase.expectedRespStatus {
    			t.Errorf("Test %d: %s: Expected the response status to be `%d`, but instead found `%d`", i+1, instanceType, testCase.expectedRespStatus, recV2.Code)
    		}
    
    		errorResponse = APIErrorResponse{}
    		err = xml.Unmarshal(recV2.Body.Bytes(), &errorResponse)
    		if err != nil && !testCase.shouldPass {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unmarshal/unmarshal.go

    		argidx := -1
    
    		recv := fn.Type().(*types.Signature).Recv()
    		if fn.Name() == "Unmarshal" && recv == nil {
    			// "encoding/json".Unmarshal
    			// "encoding/xml".Unmarshal
    			// "encoding/asn1".Unmarshal
    			switch fn.Pkg().Path() {
    			case "encoding/json", "encoding/xml", "encoding/asn1":
    				argidx = 1 // func([]byte, interface{})
    			}
    		} else if fn.Name() == "Decode" && recv != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/internal/types/testdata/examples/functions.go

    func fsend[T any](chan<- T) {}
    
    func _() {
    	var both chan int
    	var recv <-chan int
    	var send chan<-int
    
    	fboth(both)
    	fboth(recv /* ERROR "cannot use" */ )
    	fboth(send /* ERROR "cannot use" */ )
    
    	frecv(both)
    	frecv(recv)
    	frecv(send /* ERROR "cannot use" */ )
    
    	fsend(both)
    	fsend(recv /* ERROR "cannot use" */)
    	fsend(send)
    }
    
    func ffboth[T any](func(chan T)) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 30 20:19:38 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/callee.go

    	if f, ok := Callee(info, call).(*types.Func); ok && !interfaceMethod(f) {
    		return f
    	}
    	return nil
    }
    
    func interfaceMethod(f *types.Func) bool {
    	recv := f.Type().(*types.Signature).Recv()
    	return recv != nil && types.IsInterface(recv.Type())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    //	"slog.Logger.With" (instead of "(*log/slog.Logger).With")
    func shortName(fn *types.Func) string {
    	var r string
    	if recv := fn.Type().(*types.Signature).Recv(); recv != nil {
    		if _, named := typesinternal.ReceiverNamed(recv); named != nil {
    			r = named.Obj().Name()
    		} else {
    			r = recv.Type().String() // anon struct/interface
    		}
    		r += "."
    	}
    	return fmt.Sprintf("%s.%s%s", fn.Pkg().Name(), r, fn.Name())
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. test/fixedbugs/bug225.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {	
    	c := make(chan bool, 1);
    	select {
    	case _ = <-c:
    		panic("BUG: recv should not");
    	default:
    	}
    	c <- true;
    	select {
    	case _ = <-c:
    	default:
    		panic("BUG: recv should");
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 375 bytes
    - Viewed (0)
Back to top