Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 89 for isptrto (0.16 sec)

  1. src/go/types/methodset.go

    	}
    
    	// method set up to the current depth, allocated lazily
    	var base methodSet
    
    	typ, isPtr := deref(T)
    
    	// *typ where typ is an interface has no methods.
    	if isPtr && IsInterface(typ) {
    		return &emptyMethodSet
    	}
    
    	// Start with typ as single entry at shallowest depth.
    	current := []embeddedType{{typ, nil, isPtr, false}}
    
    	// seen tracks named types that we have seen already, allocated lazily.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/deadstore_test.go

    	// types of the address fields are identical (where identicalness is
    	// decided by the CSE pass).
    	c := testConfig(t)
    	t1 := c.config.Types.UInt64.PtrTo()
    	t2 := c.config.Types.UInt32.PtrTo()
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("start", OpInitMem, types.TypeMem, 0, nil),
    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Valu("v", OpConstBool, c.config.Types.Bool, 1, nil),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/typecheck.go

    				n.X = typecheck(star, ctxType|ctxExpr)
    			} else if tt.IsPtr() && tt.Elem().IsPtr() && types.Identical(derefall(tt), derefall(rcvr)) {
    				base.Errorf("calling method %v with receiver %L requires explicit dereference", n.Sel, n.X)
    				for tt.IsPtr() {
    					// Stop one level early for method with pointer receiver.
    					if rcvr.IsPtr() && !tt.Elem().IsPtr() {
    						break
    					}
    					star := ir.NewStarExpr(base.Pos, n.X)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go

    		return false // the call is not of the form x.f()
    	}
    
    	res := sig.Results()
    	if res.Len() != 2 {
    		return false // the function called does not return two values.
    	}
    	isPtr, named := typesinternal.ReceiverNamed(res.At(0))
    	if !isPtr || named == nil || !analysisutil.IsNamedType(named, "net/http", "Response") {
    		return false // the first return type is not *http.Response.
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/iimport.go

    // TODO(mdempsky): Store this information directly in the Type's Name.
    var typeSymIdx = make(map[*types.Type][2]int64)
    
    func BaseTypeIndex(t *types.Type) int64 {
    	tbase := t
    	if t.IsPtr() && t.Sym() == nil && t.Elem().Sym() != nil {
    		tbase = t.Elem()
    	}
    	i, ok := typeSymIdx[tbase]
    	if !ok {
    		return -1
    	}
    	if t != tbase {
    		return i[1]
    	}
    	return i[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:52:50 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/convert.go

    		//    res = res.type
    		// }
    
    		// Grab its parts.
    		itab := ir.NewUnaryExpr(base.Pos, ir.OITAB, c)
    		itab.SetType(types.Types[types.TUINTPTR].PtrTo())
    		itab.SetTypecheck(1)
    		data := ir.NewUnaryExpr(n.Pos(), ir.OIDATA, c)
    		data.SetType(types.Types[types.TUINT8].PtrTo()) // Type is generic pointer - we're just passing it through.
    		data.SetTypecheck(1)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/lookup.go

    	// methods of the pointer base type when T is a (*Named) pointer type.
    	typ, isPtr := deref(T)
    
    	// *typ where typ is an interface (incl. a type parameter) has no methods.
    	if isPtr {
    		if _, ok := under(typ).(*Interface); ok {
    			return
    		}
    	}
    
    	// Start with typ as single entry at shallowest depth.
    	current := []embeddedType{{typ, nil, isPtr, false}}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. src/go/types/lookup.go

    	// methods of the pointer base type when T is a (*Named) pointer type.
    	typ, isPtr := deref(T)
    
    	// *typ where typ is an interface (incl. a type parameter) has no methods.
    	if isPtr {
    		if _, ok := under(typ).(*Interface); ok {
    			return
    		}
    	}
    
    	// Start with typ as single entry at shallowest depth.
    	current := []embeddedType{{typ, nil, isPtr, false}}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  9. operator/pkg/validate/validate.go

    	if structPtr == nil {
    		return nil
    	}
    	if util.IsStruct(structPtr) {
    		scope.Debugf("validate path %s, skipping struct type %T", path, structPtr)
    		return nil
    	}
    	if !util.IsPtr(structPtr) {
    		metrics.CRValidationErrorTotal.Increment()
    		return util.NewErrs(fmt.Errorf("validate path %s, value: %v, expected ptr, got %T", path, structPtr, structPtr))
    	}
    	structElems := reflect.ValueOf(structPtr).Elem()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 12 16:04:15 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  10. src/go/types/struct.go

    			// (via under(t)) a possibly incomplete type.
    
    			// for use in the closure below
    			embeddedTyp := typ
    			embeddedPos := f.Type
    
    			check.later(func() {
    				t, isPtr := deref(embeddedTyp)
    				switch u := under(t).(type) {
    				case *Basic:
    					if !isValid(t) {
    						// error was reported before
    						return
    					}
    					// unsafe.Pointer is treated like a regular pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top