Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for NumParams (0.17 sec)

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

    	//	reflect.Value.MethodByName - func(string) reflect.Value
    	methodName := dot.Sel.Name
    	t := dot.Selection.Type
    
    	// Check the number of arguments and return values.
    	if t.NumParams() != 1 || (t.NumResults() != 1 && t.NumResults() != 2) {
    		return
    	}
    
    	// Check the type of the argument.
    	switch pKind := t.Param(0).Type.Kind(); {
    	case methodName == "Method" && pKind == types.TINT,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/ssa.go

    		}
    	}
    }
    
    // emit argument info (locations on stack) for traceback.
    func emitArgInfo(e *ssafn, f *ssa.Func, pp *objw.Progs) {
    	ft := e.curfn.Type()
    	if ft.NumRecvs() == 0 && ft.NumParams() == 0 {
    		return
    	}
    
    	x := EmitArgInfo(e.curfn, f.OwnAux.ABIInfo())
    	x.Set(obj.AttrContentAddressable, true)
    	e.curfn.LSym.Func().ArgInfo = x
    
    	// Emit a funcdata pointing at the arg info data.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top