- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 3,185 for types2 (0.13 sec)
-
src/go/types/gcsizes.go
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT. // Source: ../../cmd/compile/internal/types2/gcsizes.go // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types type gcSizes struct { WordSize int64 // word size in bytes - must be >= 4 (32bits) MaxAlign int64 // maximum alignment in bytes - must be >= 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 4.4K 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/go/types/typeterm_test.go
// Source: ../../cmd/compile/internal/types2/typeterm_test.go // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types import ( "strings" "testing" ) var myInt = func() Type { tname := NewTypeName(nopos, nil, "myInt", nil) return NewNamed(tname, Typ[Int], nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/union.go
} typ := check.typ(x) // Embedding stand-alone type parameters is not permitted (go.dev/issue/47127). // We don't need this restriction anymore if we make the underlying type of a type // parameter its constraint interface: if we embed a lone type parameter, we will // simply use its underlying type (like we do for other named, embedded interfaces), // and since the underlying type is an interface the embedding is well defined.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 15 16:16:58 UTC 2023 - 6.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/interface.go
// typeSet returns the type set for interface t. func (t *Interface) typeSet() *_TypeSet { return computeInterfaceTypeSet(t.check, nopos, t) } // emptyInterface represents the empty interface var emptyInterface = Interface{complete: true, tset: &topTypeSet} // NewInterfaceType returns a new interface for the given methods and embedded types. // NewInterfaceType takes ownership of the provided methods and may modify their types // by setting missing receivers.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 6.2K bytes - Viewed (0) -
src/go/types/termlist_test.go
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT. // Source: ../../cmd/compile/internal/types2/termlist_test.go // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types import ( "strings" "testing" ) // maketl makes a term list from a string of the term list. func maketl(s string) termlist {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 7.3K 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)