- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for newAliasInstance (0.16 sec)
-
src/cmd/compile/internal/types2/alias.go
if check != nil { check.needsCleanup(a) } return a } // newAliasInstance creates a new alias instance for the given origin and type // arguments, recording pos as the position of its synthetic object (for error // reporting). func (check *Checker) newAliasInstance(pos syntax.Pos, orig *Alias, targs []Type, ctxt *Context) *Alias { assert(len(targs) > 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5K bytes - Viewed (0) -
src/go/types/alias.go
if check != nil { check.needsCleanup(a) } return a } // newAliasInstance creates a new alias instance for the given origin and type // arguments, recording pos as the position of its synthetic object (for error // reporting). func (check *Checker) newAliasInstance(pos token.Pos, orig *Alias, targs []Type, ctxt *Context) *Alias { assert(len(targs) > 0)
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/subst.go
// 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 { return &Array{len: t.len, elem: elem} } case *Slice:
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
// 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 { return &Array{len: t.len, elem: elem} } case *Slice:
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/cmd/compile/internal/types2/instantiate.go
if !check.validateTArgLen(pos, orig.String(), tparams.Len(), len(targs)) { return Typ[Invalid] } if tparams.Len() == 0 { return orig // nothing to do (minor optimization) } return check.newAliasInstance(pos, orig, targs, ctxt) case *Signature: assert(expanding == nil) // function instances cannot be reached from Named types tparams := orig.TypeParams()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.7K bytes - Viewed (0) -
src/go/types/instantiate.go
if !check.validateTArgLen(pos, orig.String(), tparams.Len(), len(targs)) { return Typ[Invalid] } if tparams.Len() == 0 { return orig // nothing to do (minor optimization) } return check.newAliasInstance(pos, orig, targs, ctxt) case *Signature: assert(expanding == nil) // function instances cannot be reached from Named types tparams := orig.TypeParams()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.8K bytes - Viewed (0)