- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 244 for RECV (0.31 sec)
-
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) -
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 (1) -
src/cmd/compile/internal/typecheck/dcl.go
func NewMethodType(sig *types.Type, recv *types.Type) *types.Type { nrecvs := 0 if recv != nil { nrecvs++ } // TODO(mdempsky): Move this function to types. // TODO(mdempsky): Preserve positions, names, and package from sig+recv. params := make([]*types.Field, nrecvs+sig.NumParams()) if recv != nil { params[0] = types.NewField(base.Pos, nil, recv) } for i, param := range sig.Params() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:15:50 UTC 2023 - 3.1K bytes - Viewed (0) -
src/go/doc/doc_test.go
Methods: []*Func{ {Name: "M1", Recv: "S1", Orig: "S1", Level: 0}, {Name: "M2", Recv: "S1", Orig: "S1", Level: 0}, {Name: "M4", Recv: "S1", Orig: "s3", Level: 1}, {Name: "P1", Recv: "*S1", Orig: "*S1", Level: 0}, }, }, { Name: "S2", Methods: []*Func{ {Name: "M3", Recv: "S2", Orig: "S2", Level: 0}, }, }, },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:52 UTC 2022 - 6.7K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
test/fixedbugs/bug225.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:49:30 UTC 2012 - 375 bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-communication.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 08 18:24:20 UTC 2024 - 38.3K bytes - Viewed (0)