- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for TParamList (0.14 sec)
-
src/cmd/compile/internal/types2/decl.go
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/cmd/compile/internal/types2/typestring.go
// 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()) } case *TypeParam: if t.obj == nil { w.error("unnamed type parameter") break } if i := tparamIndex(w.tparams.list(), t); i >= 0 {
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/typestring.go
// 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()) } case *TypeParam: if t.obj == nil { w.error("unnamed type parameter") break } if i := tparamIndex(w.tparams.list(), t); i >= 0 {
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/go/internal/gcimporter/iimport.go
obj := types.NewTypeName(pos, r.currPkg, name, nil) named := types.NewNamed(obj, nil, nil) // Declare obj before calling r.tparamList, so the new type name is recognized // if used in the constraint of one of its own typeparams (see #48280). r.declare(obj) if tag == 'U' { tparams := r.tparamList() named.SetTypeParams(tparams) } underlying := r.p.typAt(r.uint64(), named).Underlying() named.SetUnderlying(underlying)
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/resolver.go
if name == "init" || name == "main" && pkg.name == "main" { code := InvalidInitDecl if name == "main" { code = InvalidMainDecl } if len(s.TParamList) != 0 { check.softErrorf(s.TParamList[0], code, "func %s must have no type parameters", name) hasTParamError = true } if t := s.Type; len(t.ParamList) != 0 || len(t.ResultList) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 26.3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
} typ := new(FuncType) typ.pos = p.pos() var tparamList []*Field if p.got(_Lbrack) { if context != "" { // accept but complain p.syntaxErrorAt(typ.pos, context+" must have no type parameters") } if p.tok == _Rbrack { p.syntaxError("empty type parameter list") p.next() } else { tparamList = p.paramList(nil, nil, _Rbrack, true) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/go/types/object.go
case *Basic: // Don't print anything more for basic types since there's // no more information. return case *Named: if t.TypeParams().Len() > 0 { newTypeWriter(buf, qf).tParamList(t.TypeParams().list()) } } if tname.IsAlias() { buf.WriteString(" =") if alias, ok := typ.(*Alias); ok { // materialized? (gotypesalias=1) typ = alias.fromRHS }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/object.go
case *Basic: // Don't print anything more for basic types since there's // no more information. return case *Named: if t.TypeParams().Len() > 0 { newTypeWriter(buf, qf).tParamList(t.TypeParams().list()) } } if tname.IsAlias() { buf.WriteString(" =") if alias, ok := typ.(*Alias); ok { // materialized? (gotypesalias=1) typ = alias.fromRHS }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0)