- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for RenameResult (0.11 sec)
-
src/cmd/compile/internal/types2/compiler_internal.go
// the newly named object is inserted into the signature's scope, // and the object and new field name are returned. // // The intended use for RenameResult is to allow rangefunc to assign results within a closure. // This is a hack, as narrowly targeted as possible to discourage abuse. func (s *Signature) RenameResult(results []*syntax.Field, i int) (*Var, *syntax.Name) { a := results[i] obj := s.Results().At(i)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 1.4K bytes - Viewed (0) -
src/cmd/compile/internal/rangefunc/rewrite.go
tv.SetIsValue() n.SetTypeInfo(tv) r.info.Defs[n] = obj return obj, n } func (r *rewriter) generateParamName(results []*syntax.Field, i int) { obj, n := r.sig.RenameResult(results, i) r.info.Defs[n] = obj } // declVar declares a variable with a given name type and initializer value. func (r *rewriter) declVar(name string, typ types2.Type, init syntax.Expr) *types2.Var {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0)