Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mkFuncType (0.07 sec)

  1. src/cmd/compile/internal/test/abiutilsaux_test.go

    	for k, t := range fieldtypes {
    		if t == nil {
    			panic("bad -- field has no type")
    		}
    		f := types.NewField(src.NoXPos, nil, t)
    		fields[k] = f
    	}
    	s := types.NewStruct(fields)
    	return s
    }
    
    func mkFuncType(rcvr *types.Type, ins []*types.Type, outs []*types.Type) *types.Type {
    	q := typecheck.Lookup("?")
    	inf := []*types.Field{}
    	for _, it := range ins {
    		inf = append(inf, mkParamResultField(it, q, ir.PPARAM))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:34:00 UTC 2023
    - 3.2K bytes
    - Viewed (0)
Back to top