- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,410 for types2 (0.21 sec)
-
src/cmd/compile/internal/types2/version.go
// license that can be found in the LICENSE file. package types2 import ( "fmt" "go/version" "internal/goversion" ) // A goVersion is a Go language version string of the form "go1.%d" // where d is the minor version number. goVersion strings don't // contain release numbers ("go1.20.1" is not a valid goVersion). type goVersion string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 20:44:57 UTC 2024 - 2.4K bytes - Viewed (0) -
src/go/types/under.go
return t.Underlying() } // If t is not a type parameter, coreType returns the underlying type. // If t is a type parameter, coreType returns the single underlying // type of all types in its type set if it exists, or nil otherwise. If the // type set contains only unrestricted and restricted channel types (with // identical element types), the single underlying type is the restricted // channel type if the restrictions are always the same, or nil otherwise.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 22:34:27 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/format.go
// This file implements (error and trace) message formatting support. package types2 import ( "bytes" "cmd/compile/internal/syntax" "fmt" "strconv" "strings" ) func sprintf(qf Qualifier, tpSubscripts bool, format string, args ...any) string { for i, arg := range args { switch a := arg.(type) { case nil: arg = "<nil>" case operand: panic("got operand instead of *operand")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typexpr.go
} x.typ = typ } // typ type-checks the type expression e and returns its type, or Typ[Invalid]. // The type must not be an (uninstantiated) generic type. func (check *Checker) typ(e syntax.Expr) Type { return check.definedType(e, nil) } // varType type-checks the type expression e and returns its type, or Typ[Invalid]. // The type must not be an (uninstantiated) generic type and it must not be a // constraint interface.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typeparam.go
func nextID() uint64 { return uint64(lastID.Add(1)) } // A TypeParam represents a type parameter type. type TypeParam struct { check *Checker // for lazy type bound completion id uint64 // unique id, for debugging only obj *TypeName // corresponding type name index int // type parameter index in source order, starting at 0 bound Type // any type, but underlying is eventually *Interface for correct programs (see TypeParam.iface) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 4.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/alias.go
// Underlying returns the [underlying type] of the alias type a, which is the // underlying type of the aliased type. Underlying types are never Named, // TypeParam, or Alias types. // // [underlying type]: https://go.dev/ref/spec#Underlying_types. func (a *Alias) Underlying() Type { return unalias(a).Underlying() } // Origin returns the generic Alias type of which a is an instance.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/object_test.go
{"type t struct{f int}", "t", "type p.t struct{f int}", false}, {"type t func(int)", "t", "type p.t func(int)", false}, {"type t[P any] struct{f P}", "t", "type p.t[P any] struct{f P}", false}, {"type t[P any] struct{f P}", "t.P", "type parameter P any", false}, {"type C interface{m()}; type t[P C] struct{}", "t.P", "type parameter P p.C", false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 5.2K bytes - Viewed (0) -
src/go/types/typeparam.go
func nextID() uint64 { return uint64(lastID.Add(1)) } // A TypeParam represents a type parameter type. type TypeParam struct { check *Checker // for lazy type bound completion id uint64 // unique id, for debugging only obj *TypeName // corresponding type name index int // type parameter index in source order, starting at 0 bound Type // any type, but underlying is eventually *Interface for correct programs (see TypeParam.iface) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 5.1K bytes - Viewed (0) -
src/go/types/alias.go
func (a *Alias) Obj() *TypeName { return a.orig.obj } func (a *Alias) String() string { return TypeString(a, nil) } // Underlying returns the [underlying type] of the alias type a, which is the // underlying type of the aliased type. Underlying types are never Named, // TypeParam, or Alias types. // // [underlying type]: https://go.dev/ref/spec#Underlying_types.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check.go
recvTParamMap map[*syntax.Name]*TypeParam // maps blank receiver type parameters to their type brokenAliases map[*TypeName]bool // set of aliases with broken (not yet determined) types unionTypeSets map[*Union]*_TypeSet // computed type sets for union types mono monoGraph // graph for detecting non-monomorphizable instantiation loops
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.3K bytes - Viewed (0)