- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 258 for frecv (0.1 sec)
-
src/go/internal/srcimporter/srcimporter_test.go
for i := 0; i < iface.NumExplicitMethods(); i++ { m := iface.ExplicitMethod(i) recv := m.Type().(*types.Signature).Recv() if recv == nil { t.Errorf("%s: missing receiver type", m) continue } if recv.Type() != named { t.Errorf("%s: got recv type %s; want %s", m, recv.Type(), named) } } // check embedded interfaces (they are named, too)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 6.5K bytes - Viewed (0) -
test/chan/select5.go
} ` func parse(name, s string) *template.Template { t, err := template.New(name).Parse(s) if err != nil { panic(fmt.Sprintf("%q: %s", name, err)) } return t } var recv = parse("recv", ` {{/* Send n, receive it one way or another into x, check that they match. */}} c <- n {{if .Maybe}} x = <-c {{else}} select { {{/* Blocking or non-blocking, before the receive. */}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 10K bytes - Viewed (0) -
test/struct0.go
// Used to not be evaluated. // Issue 2232. package main func recv(c chan interface{}) struct{} { return (<-c).(struct{}) } var m = make(map[interface{}]int) func recv1(c chan interface{}) { defer rec() m[(<-c).(struct{})] = 0 } func rec() { recover() } func main() { c := make(chan interface{}) go recv(c) c <- struct{}{} go recv1(c) c <- struct{}{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 565 bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_side_effects.h
}; struct Send : public ::mlir::SideEffects::Resource::Base<Send> { StringRef getName() final { return "Send"; } }; struct Recv : public ::mlir::SideEffects::Resource::Base<Recv> { StringRef getName() final { return "Recv"; } }; struct XlaHostCompute : public ::mlir::SideEffects::Resource::Base<XlaHostCompute> { StringRef getName() final { return "XlaHostCompute"; } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 26 18:45:40 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/compile/internal/walk/order.go
base.Fatalf("unknown op in select %v", r.Op()) case ir.OSELRECV2: // case x, ok = <-c r := r.(*ir.AssignListStmt) recv := r.Rhs[0].(*ir.UnaryExpr) recv.X = o.expr(recv.X, nil) if !ir.IsAutoTmp(recv.X) { recv.X = o.copyExpr(recv.X) } init := ir.TakeInit(r) colas := r.Def do := func(i int, t *types.Type) { n := r.Lhs[i] if ir.IsBlank(n) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:33 UTC 2024 - 42.7K bytes - Viewed (0) -
src/go/doc/reader.go
} // function doesn't exist or has no documentation; use f recv := "" if f.Recv != nil { var typ ast.Expr // be careful in case of incorrect ASTs if list := f.Recv.List; len(list) == 1 { typ = list[0].Type } recv = recvString(typ) } mset[name] = &Func{ Doc: f.Doc.Text(), Name: name, Decl: f, Recv: recv, Orig: recv, } if !preserveAST {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 27.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
return as } switch as.Y.Op() { 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:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0) -
src/go/doc/doc.go
// // If recv == "", HasSym reports whether the package has a top-level // const, func, type, or var named name. // // If recv != "", HasSym reports whether the package has a type // named recv with a method named name. func (p *Package) lookupSym(recv, name string) bool { if recv != "" { return p.syms[recv+"."+name] } return p.syms[name] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 11.2K bytes - Viewed (0) -
src/go/doc/comment/print.go
baseURL += "/" } switch { case l.Name == "": return baseURL + l.ImportPath + slash case l.Recv != "": return baseURL + l.ImportPath + slash + "#" + l.Recv + "." + l.Name default: return baseURL + l.ImportPath + slash + "#" + l.Name } } if l.Recv != "" { return "#" + l.Recv + "." + l.Name } return "#" + l.Name } // DefaultID returns the default anchor ID for the heading h.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 7.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/stdmethods.go
return } // Special case: Is, As and Unwrap only apply when type // implements error. if id.Name == "Is" || id.Name == "As" || id.Name == "Unwrap" { if recv := sign.Recv(); recv == nil || !implementsError(recv.Type()) { return } } // Special case: Unwrap has two possible signatures. // Check for Unwrap() []error here. if id.Name == "Unwrap" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 6.9K bytes - Viewed (0)