- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 4,601 for Types (0.17 sec)
-
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) -
src/cmd/compile/internal/walk/builtin.go
decl := types.NewSignature(nil, []*types.Field{ types.NewField(base.Pos, nil, types.Types[types.TUINTPTR]), types.NewField(base.Pos, nil, types.Types[types.TUINTPTR]), }, []*types.Field{ types.NewField(base.Pos, nil, types.Types[types.TUINTPTR]), types.NewField(base.Pos, nil, types.Types[types.TBOOL]), }) fn := ir.NewFunc(n.Pos(), n.Pos(), math_MulUintptr, decl)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:35:22 UTC 2024 - 31.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
} return hash case *types.Basic: return 45212177 * uint32(t.Kind()) case *types.Array: return 1524181 + 2*uint32(t.Len()) case *types.Slice: return 2690201 case *types.Struct: return 3326489 case *types.Pointer: return 4393139 case *types.Union: return 562448657 case *types.Interface: return 2124679 // no recursion here
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
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) -
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) -
src/cmd/compile/internal/ssagen/ssa.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0) -
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) -
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) -
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) -
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)