- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for typeList (0.13 sec)
-
src/cmd/compile/internal/types2/subst.go
// already instantiated // For each (existing) type argument determine if it needs // to be substituted; i.e., if it is or contains a type parameter // that has a type argument for it. targs, updated := subst.typeList(t.TypeArgs().list()) if updated { return subst.check.newAliasInstance(subst.pos, t.orig, targs, subst.ctxt) } case *Array: elem := subst.typOrNil(t.elem) if elem != t.elem {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11K bytes - Viewed (0) -
src/go/types/subst.go
// already instantiated // For each (existing) type argument determine if it needs // to be substituted; i.e., if it is or contains a type parameter // that has a type argument for it. targs, updated := subst.typeList(t.TypeArgs().list()) if updated { return subst.check.newAliasInstance(subst.pos, t.orig, targs, subst.ctxt) } case *Array: elem := subst.typOrNil(t.elem) if elem != t.elem {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11.1K bytes - Viewed (0) -
src/go/types/typestring.go
if w.ctxt != nil { w.string(strconv.Itoa(w.ctxt.getID(t))) } w.typeName(t.obj) // when hashing written for readability of the hash only if t.inst != nil { // instantiated type w.typeList(t.inst.targs.list()) } else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams // parameterized type w.tParamList(t.TypeParams().list()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring.go
if w.ctxt != nil { w.string(strconv.Itoa(w.ctxt.getID(t))) } w.typeName(t.obj) // when hashing written for readability of the hash only if t.inst != nil { // instantiated type w.typeList(t.inst.targs.list()) } else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams // parameterized type w.tParamList(t.TypeParams().list()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.2K bytes - Viewed (0) -
src/go/types/typexpr.go
msg = "array length %s must be integer" } check.errorf(&x, InvalidArrayLen, msg, &x) return -1 } // typeList provides the list of types corresponding to the incoming expression list. // If an error occurred, the result is nil, but all list elements were type-checked. func (check *Checker) typeList(list []ast.Expr) []Type { res := make([]Type, len(list)) // res != nil even if len(list) == 0 for i, x := range list {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typexpr.go
msg = "array length %s must be integer" } check.errorf(&x, InvalidArrayLen, msg, &x) return -1 } // typeList provides the list of types corresponding to the incoming expression list. // If an error occurred, the result is nil, but all list elements were type-checked. func (check *Checker) typeList(list []syntax.Expr) []Type { res := make([]Type, len(list)) // res != nil even if len(list) == 0 for i, x := range list {
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/named.go
} // instance holds information that is only necessary for instantiated named // types. type instance struct { orig *Named // original, uninstantiated type targs *TypeList // type arguments expandedMethods int // number of expanded methods; expandedMethods <= len(orig.methods) ctxt *Context // local Context; set to nil after full expansion }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 23.9K bytes - Viewed (0) -
src/go/types/named.go
} // instance holds information that is only necessary for instantiated named // types. type instance struct { orig *Named // original, uninstantiated type targs *TypeList // type arguments expandedMethods int // number of expanded methods; expandedMethods <= len(orig.methods) ctxt *Context // local Context; set to nil after full expansion }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 24K bytes - Viewed (0) -
src/cmd/compile/internal/types2/call.go
// targs and xlist are the type arguments and corresponding type expressions, or nil. var targs []Type var xlist []syntax.Expr if inst != nil { xlist = syntax.UnpackListExpr(inst.Index) targs = check.typeList(xlist) if targs == nil { x.mode = invalid return nil, nil } assert(len(targs) == len(xlist)) } // Check the number of type arguments (got) vs number of type parameters (want).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 31.5K bytes - Viewed (0) -
src/go/types/call.go
// targs and xlist are the type arguments and corresponding type expressions, or nil. var targs []Type var xlist []ast.Expr if ix != nil { xlist = ix.Indices targs = check.typeList(xlist) if targs == nil { x.mode = invalid return nil, nil } assert(len(targs) == len(xlist)) } // Check the number of type arguments (got) vs number of type parameters (want).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 33.5K bytes - Viewed (0)