- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for ResultList (0.19 sec)
-
src/cmd/compile/internal/rangefunc/rewrite.go
if len(r.outer.ResultList) > 0 { // Make sure that result parameters all have names for i, a := range r.outer.ResultList { if a.Name == nil || a.Name.Value == "_" { r.generateParamName(r.outer.ResultList, i) // updates a.Name } } } // Assign to named results results := []types2.Object{} for _, a := range r.outer.ResultList {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/signature.go
} params, variadic := check.collectParams(scope, ftyp.ParamList, true, scopePos) results, _ := check.collectParams(scope, ftyp.ResultList, false, scopePos) scope.Squash(func(obj, alt Object) { err := check.newError(DuplicateDecl) err.addf(obj, "%s redeclared in this block", obj.Name()) err.addAltDecl(alt) err.report() })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:33:05 UTC 2024 - 12.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/printer.go
} i0 = i } tok, group = s, g } } p.printDecl(list[i0:]) } func (p *printer) printSignature(sig *FuncType) { p.printParameterList(sig.ParamList, 0) if list := sig.ResultList; list != nil { p.print(blank) if len(list) == 1 && list[0].Name == nil { p.printNode(list[0].Type) } else { p.printParameterList(list, 0) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 24 07:17:27 UTC 2023 - 21.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver.go
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 { check.softErrorf(s.Name, code, "func %s must have no arguments and no return values", name) } } // don't declare init functions in the package scope - they are invisible
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/types2/issues_test.go
if err != nil { t.Fatal(err) } m := f.DeclList[0].(*syntax.FuncDecl) res1 := defs[m.Name].(*Func).Type().(*Signature).Results().At(0) res2 := defs[m.Type.ResultList[0].Name].(*Var) if res1 != res2 { t.Errorf("got %s (%p) != %s (%p)", res1, res2, res1, res2) } } // This tests that uses of existing vars on the LHS of an assignment
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
p.next() } else { tparamList = p.paramList(nil, nil, _Rbrack, true) } } p.want(_Lparen) typ.ParamList = p.paramList(nil, nil, _Rparen, false) typ.ResultList = p.funcResult() return tparamList, typ } // "[" has already been consumed, and pos is its position. // If len != nil it is the already consumed array length.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0)