Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 3,458 for Types (0.04 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go

    // type restrictions of a type, if any.
    //
    // For all types other than *types.TypeParam, *types.Interface, and
    // *types.Union, this is just a single term with Tilde() == false and
    // Type() == typ. For *types.TypeParam, *types.Interface, and *types.Union, see
    // below.
    //
    // Structural type restrictions of a type parameter are created via
    // non-interface types embedded in its constraint interface (directly, or via a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. src/go/types/sizes_test.go

    package a
    
    import "unsafe"
    
    const _ = unsafe.Offsetof(struct{ x int64 }{}.x)
    `
    	info := types.Info{Types: make(map[ast.Expr]types.TypeAndValue)}
    	conf := types.Config{
    		Importer: importer.Default(),
    		Sizes:    &types.StdSizes{WordSize: 8, MaxAlign: 8},
    	}
    	mustTypecheck(src, &conf, &info)
    	for _, tv := range info.Types {
    		_ = conf.Sizes.Sizeof(tv.Type)
    		_ = conf.Sizes.Alignof(tv.Type)
    	}
    }
    
    // go.dev/issue/53884.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/aliases/aliases_go121.go

    package aliases
    
    import (
    	"go/types"
    )
    
    // Alias is a placeholder for a go/types.Alias for <=1.21.
    // It will never be created by go/types.
    type Alias struct{}
    
    func (*Alias) String() string         { panic("unreachable") }
    func (*Alias) Underlying() types.Type { panic("unreachable") }
    func (*Alias) Obj() *types.TypeName   { panic("unreachable") }
    func Rhs(alias *Alias) types.Type     { panic("unreachable") }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 962 bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/format_test.go

    			expectValue: types.OptionalNone,
    		},
    		{
    			name:        "datetime_failure",
    			expr:        `format.datetime().validate("2020-01-32T00:00:00Z")`,
    			expectValue: types.OptionalOf(types.NewStringList(types.DefaultTypeAdapter, []string{"invalid datetime"})),
    		},
    		{
    			name:        "unknown_format",
    			expr:        `format.named("unknown").hasValue()`,
    			expectValue: types.False,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/abiutilsaux_test.go

    // of the types specified in 'fieldtypes'.
    func mkstruct(fieldtypes ...*types.Type) *types.Type {
    	fields := make([]*types.Field, len(fieldtypes))
    	for k, t := range fieldtypes {
    		if t == nil {
    			panic("bad -- field has no type")
    		}
    		f := types.NewField(src.NoXPos, nil, t)
    		fields[k] = f
    	}
    	s := types.NewStruct(fields)
    	return s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:34:00 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/typeparams/free.go

    	case *types.Array:
    		return w.Has(t.Elem())
    
    	case *types.Slice:
    		return w.Has(t.Elem())
    
    	case *types.Struct:
    		for i, n := 0, t.NumFields(); i < n; i++ {
    			if w.Has(t.Field(i).Type()) {
    				return true
    			}
    		}
    
    	case *types.Pointer:
    		return w.Has(t.Elem())
    
    	case *types.Tuple:
    		n := t.Len()
    		for i := 0; i < n; i++ {
    			if w.Has(t.At(i).Type()) {
    				return true
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/methodsetcache.go

    }
    
    // MethodSet returns the method set of type T.  It is thread-safe.
    //
    // If cache is nil, this function is equivalent to types.NewMethodSet(T).
    // Utility functions can thus expose an optional *MethodSetCache
    // parameter to clients that care about performance.
    func (cache *MethodSetCache) MethodSet(T types.Type) *types.MethodSet {
    	if cache == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 18:08:27 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/ui.go

    // contains each method belonging to *T if there is no identically
    // named method on T itself.
    //
    // This corresponds to user intuition about method sets;
    // this function is intended only for user interfaces.
    //
    // The order of the result is as for types.MethodSet(T).
    func IntuitiveMethodSet(T types.Type, msets *MethodSetCache) []*types.Selection {
    	isPointerToConcrete := func(T types.Type) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    // type defString struct {
    //	data uintptr
    //	len  uintptr
    // }
    
    func createtypes() (*types.Type, *types.Type, *types.Type) {
    	up := types.Types[types.TUINTPTR]
    	i32 := types.Types[types.TINT32]
    	fname := typecheck.Lookup
    	nxp := src.NoXPos
    	nfield := types.NewField
    	asanGlobal := types.NewStruct([]*types.Field{
    		nfield(nxp, fname("beg"), up),
    		nfield(nxp, fname("size"), up),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/TypeInspector.java

            Set<Class<?>> types = inspected.get(type);
            if (types == null) {
                types = new HashSet<Class<?>>();
                visit(type, types);
                inspected.put(type, types);
            }
            return types;
        }
    
        private void visit(Class<?> type, Set<Class<?>> types) {
            if (type.isArray()) {
                visit(type.getComponentType(), types);
                return;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top