Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 259 for recv3 (0.05 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/cmd/compile/internal/syntax/walk.go

    		w.node(n.Type)
    
    	case *VarDecl:
    		w.nameList(n.NameList)
    		if n.Type != nil {
    			w.node(n.Type)
    		}
    		if n.Values != nil {
    			w.node(n.Values)
    		}
    
    	case *FuncDecl:
    		if n.Recv != nil {
    			w.node(n.Recv)
    		}
    		w.node(n.Name)
    		w.fieldList(n.TParamList)
    		w.node(n.Type)
    		if n.Body != nil {
    			w.node(n.Body)
    		}
    
    	// expressions
    	case *BadExpr: // nothing to do
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go

    				// Turn a method receiver:  func (T) f(P) R {...}
    				// into regular parameter:  func _(T, P) R {...}
    				if decl.Recv != nil {
    					var params []*ast.Field
    					params = append(params, decl.Recv.List...)
    					params = append(params, decl.Type.Params.List...)
    					decl.Type.Params.List = params
    					decl.Recv = nil
    				}
    			}
    			decls = append(decls, decl)
    		}
    		f.Decls = decls
    		if debug {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types/fmt.go

    		}
    		if len(t.AllMethods()) != 0 {
    			b.WriteByte(' ')
    		}
    		b.WriteByte('}')
    
    	case TFUNC:
    		if verb == 'S' {
    			// no leading func
    		} else {
    			if t.Recv() != nil {
    				b.WriteString("method")
    				formatParams(b, t.Recvs(), mode, visited)
    				b.WriteByte(' ')
    			}
    			b.WriteString("func")
    		}
    		formatParams(b, t.Params(), mode, visited)
    
    		switch t.NumResults() {
    		case 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/go/internal/gcimporter/ureader.go

    	r.p.ifaces = append(r.p.ifaces, iface)
    
    	return iface
    }
    
    func (r *reader) signature(recv *types.Var, rtparams, tparams []*types.TypeParam) *types.Signature {
    	r.Sync(pkgbits.SyncSignature)
    
    	params := r.params()
    	results := r.params()
    	variadic := r.Bool()
    
    	return types.NewSignatureType(recv, rtparams, tparams, params, results, variadic)
    }
    
    func (r *reader) params() *types.Tuple {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top