Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 188 for recvq (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/compile/internal/types2/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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    		// Sadly there is no way to distinguish
    		// a param/result from a local
    		// so we must proceed to the find.
    
    	case *types.Func:
    		// A func, if not package-level, must be a method.
    		if recv := obj.Type().(*types.Signature).Recv(); recv == nil {
    			return "", fmt.Errorf("func is not a method: %v", obj)
    		}
    
    		if path, ok := enc.concreteMethod(obj); ok {
    			// Fast path for concrete methods that avoids looping over scope.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/gcimporter_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 (if they are named, too)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top