Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 223 for recvs (0.14 sec)

  1. src/reflect/iter.go

    			i := v.MapRange()
    			for i.Next() {
    				if !yield(i.Key()) {
    					return
    				}
    			}
    		}
    	case Chan:
    		return func(yield func(Value) bool) {
    			for value, ok := v.Recv(); ok; value, ok = v.Recv() {
    				if !yield(value) {
    					return
    				}
    			}
    		}
    	}
    	panic("reflect: " + v.Type().String() + " cannot produce iter.Seq[Value]")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/os/writeto_linux_test.go

    		for _, size := range sizes {
    			t.Run(strconv.Itoa(size), func(t *testing.T) {
    				testSendFile(t, "tcp", int64(size))
    			})
    		}
    	})
    }
    
    func testSendFile(t *testing.T, proto string, size int64) {
    	dst, src, recv, data, hook := newSendFileTest(t, proto, size)
    
    	// Now call WriteTo (through io.Copy), which will hopefully call poll.SendFile
    	n, err := io.Copy(dst, src)
    	if err != nil {
    		t.Fatalf("io.Copy error: %v", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. src/go/types/interface.go

    		return &emptyInterface
    	}
    
    	// set method receivers if necessary
    	typ := (*Checker)(nil).newInterface()
    	for _, m := range methods {
    		if sig := m.typ.(*Signature); sig.recv == nil {
    			sig.recv = NewVar(m.pos, m.pkg, "", typ)
    		}
    	}
    
    	// sort for API stability
    	sortMethods(methods)
    
    	typ.methods = methods
    	typ.embeddeds = embeddeds
    	typ.complete = true
    
    	return typ
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  4. src/go/types/resolver.go

    				hasTParamError := false                           // avoid duplicate type parameter errors
    				if d.decl.Recv.NumFields() == 0 {
    					// regular function
    					if d.decl.Recv != nil {
    						check.error(d.decl.Recv, BadRecv, "method has no receiver")
    						// treat as function
    					}
    					if name == "init" || (name == "main" && check.pkg.name == "main") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    		// in fact, FuncDecl.Recv precedes FuncDecl.Type.Func.
    		//
    		// As a workaround, we inline the case for FuncType
    		// here and order things correctly.
    		//
    		children = nil // discard ast.Walk(FuncDecl) info subtrees
    		children = append(children, tok(n.Type.Func, len("func")))
    		if n.Recv != nil {
    			children = append(children, n.Recv)
    		}
    		children = append(children, n.Name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go

    	f := typeutil.StaticCallee(info, call)
    	if f == nil || f.Name() != method {
    		return false
    	}
    	recv := f.Type().(*types.Signature).Recv()
    	if recv == nil {
    		return false
    	}
    
    	// Check that the receiver is a <pkgPath>.<typeName> or
    	// *<pkgPath>.<typeName>.
    	_, named := typesinternal.ReceiverNamed(recv)
    	return analysisutil.IsNamedType(named, pkgPath, typeName)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. src/cmd/cgo/ast.go

    		case *ast.FuncDecl:
    			// Also, reject attempts to declare methods on C.T or *C.T.
    			// (The generated code would otherwise accept this
    			// invalid input; see issue #57926.)
    			if decl.Recv != nil && len(decl.Recv.List) > 0 {
    				recvType := decl.Recv.List[0].Type
    				if recvType != nil {
    					t := recvType
    					if star, ok := unparen(t).(*ast.StarExpr); ok {
    						t = star.X
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/mlrt/tpu_conversions.mlir

      // CHECK: [[recv_future:%.*]] = tf_mlrt.async_executeop.device([[device]]){{.*}}op: \22Recv\22
      // CHECK: [[recv:%.*]] = tf_mlrt.await [[recv_future]]
      // CHECK: [[rendezvous_key_base:%.*]], [[result_future:%.*]] = tf_mlrt_tpu.compile_and_execute([[recv]])
      // CHECK: tf_mlrt.await [[result_future]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 04 21:25:31 UTC 2023
    - 11K bytes
    - Viewed (0)
  9. src/go/types/object.go

    		sig := f.typ.(*Signature)
    		if recv := sig.Recv(); recv != nil {
    			buf.WriteByte('(')
    			if _, ok := recv.Type().(*Interface); ok {
    				// gcimporter creates abstract methods of
    				// named interfaces using the interface type
    				// (not the named type) as the receiver.
    				// Don't print it in full.
    				buf.WriteString("interface")
    			} else {
    				WriteType(buf, recv.Type(), qf)
    			}
    			buf.WriteByte(')')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/resolver.go

    					}
    				} else {
    					// method
    					// d.Recv != nil
    					ptr, recv, _ := check.unpackRecv(s.Recv.Type, false)
    					// Methods with invalid receiver cannot be associated to a type, and
    					// methods with blank _ names are never found; no need to collect any
    					// of them. They will still be type-checked with all the other functions.
    					if recv != nil && name != "_" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top