Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewStructKeyExpr (0.19 sec)

  1. src/cmd/compile/internal/walk/closure.go

    	clos.SetEsc(clo.Esc())
    	clos.List = append([]ir.Node{ir.NewUnaryExpr(base.Pos, ir.OCFUNC, clofn.Nname)}, closureArgs(clo)...)
    	for i, value := range clos.List {
    		clos.List[i] = ir.NewStructKeyExpr(base.Pos, typ.Field(i), value)
    	}
    
    	addr := typecheck.NodAddr(clos)
    	addr.SetEsc(clo.Esc())
    
    	// Force type conversion from *struct to the func type.
    	cfn := typecheck.ConvNop(addr, clo.Type())
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/expr.go

    					}
    				}
    				// No pushtype allowed here. Must name fields for that.
    				n1 = AssignConv(n1, f.Type, "field value")
    				ls[i] = ir.NewStructKeyExpr(base.Pos, f, n1)
    			}
    			if len(ls) < t.NumFields() {
    				base.Errorf("too few values in %v", n)
    			}
    		} else {
    			hash := make(map[string]bool)
    
    			// keyed list
    			ls := n.List
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top