- Sort Score
- Result 10 results
- Languages All
Results 21 - 27 of 27 for TypeArgs (0.17 sec)
-
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
return 9109 + 2*h.Hash(t.Key()) + 3*h.Hash(t.Elem()) case *types.Chan: return 9127 + 2*uint32(t.Dir()) + 3*h.Hash(t.Elem()) case *types.Named: hash := h.hashPtr(t.Obj()) targs := t.TypeArgs() for i := 0; i < targs.Len(); i++ { targ := targs.At(i) hash += 2 * h.Hash(targ) } return hash case *types.TypeParam: return h.hashTypeParam(t) case *types.Tuple:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
src/go/internal/gcimporter/iimport.go
recv := r.param() // If the receiver has any targs, set those as the // rparams of the method (since those are the // typeparams being used in the method sig/body). targs := baseType(recv.Type()).TypeArgs() var rparams []*types.TypeParam if targs.Len() > 0 { rparams = make([]*types.TypeParam, targs.Len()) for i := range rparams { rparams[i], _ = targs.At(i).(*types.TypeParam) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/decl.go
// spec: "If the base type is a struct type, the non-blank method // and field names must be distinct." base := asNamed(obj.typ) // shouldn't fail but be conservative if base != nil { assert(base.TypeArgs().Len() == 0) // collectMethods should not be called on an instantiated type // See go.dev/issue/52529: we must delay the expansion of underlying here, as // base may not be fully set-up. check.later(func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.6K bytes - Viewed (0) -
src/go/types/decl.go
// spec: "If the base type is a struct type, the non-blank method // and field names must be distinct." base := asNamed(obj.typ) // shouldn't fail but be conservative if base != nil { assert(base.TypeArgs().Len() == 0) // collectMethods should not be called on an instantiated type // See go.dev/issue/52529: we must delay the expansion of underlying here, as // base may not be fully set-up. check.later(func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 31K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
} // Pairwise compare with the expected instances. for ii, inst := range instances { var targs []Type for i := 0; i < inst.Inst.TypeArgs.Len(); i++ { targs = append(targs, inst.Inst.TypeArgs.At(i)) } typ := inst.Inst.Type testInst := test.instances[ii] if got := inst.Name.Value; got != testInst.name {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/go/types/api_test.go
} // Pairwise compare with the expected instances. for ii, inst := range instances { var targs []Type for i := 0; i < inst.Inst.TypeArgs.Len(); i++ { targs = append(targs, inst.Inst.TypeArgs.At(i)) } typ := inst.Inst.Type testInst := test.instances[ii] if got := inst.Ident.Name; got != testInst.name {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
doc/go_spec.html
A type may also be specified using a <i>type literal</i>, which composes a type from existing types. </p> <pre class="ebnf"> Type = TypeName [ TypeArgs ] | TypeLit | "(" Type ")" . TypeName = identifier | QualifiedIdent . TypeArgs = "[" TypeList [ "," ] "]" . TypeList = Type { "," Type } . TypeLit = ArrayType | StructType | PointerType | FunctionType | InterfaceType |
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (0)