- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for methodValues (0.24 sec)
-
test/typeparam/dictionaryCapture-noinline.go
// Test situations where functions/methods are not // immediately called and we need to capture the dictionary // required for later invocation. package main func main() { functions() methodExpressions() methodValues() interfaceMethods() globals() } func g0[T any](x T) { } func g1[T any](x T) T { return x } func g2[T any](x T) (T, T) { return x, x } func functions() { f0 := g0[int]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.8K bytes - Viewed (0) -
test/typeparam/dictionaryCapture.go
// required for later invocation. package main import ( "fmt" ) func main() { functions() methodExpressions() genMethodExpressions[int](7) methodValues() genMethodValues[int](7) interfaceMethods() globals() recursive() } func g0[T any](x T) { } func g1[T any](x T) T { return x } func g2[T any](x T) (T, T) { return x, x }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 3.3K bytes - Viewed (0) -
src/reflect/makefunc.go
// v.Type returns the actual type of the method value. ftyp := (*funcType)(unsafe.Pointer(v.Type().(*rtype))) code := methodValueCallCodePtr() // methodValue contains a stack map for use by the runtime _, _, abid := funcLayout(ftyp, nil) fv := &methodValue{ makeFuncCtxt: makeFuncCtxt{ fn: code, stack: abid.stackPtrs, argLen: abid.stackCallArgsSize, regPtrs: abid.inRegPtrs, },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:20:05 UTC 2024 - 5.9K bytes - Viewed (0) -
src/runtime/stkframe.go
switch funcname(f) { case "reflect.makeFuncStub", "reflect.methodValueCall": // These take a *reflect.methodValue as their // context register and immediately save it to 0(SP). // Get the methodValue from 0(SP). arg0 := frame.sp + sys.MinFrameSize minSP := frame.fp if !usesLR { // The CALL itself pushes a word. // Undo that adjustment.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 9.9K bytes - Viewed (0) -
schema/schema.go
callbackTypeBeforeDelete, callbackTypeAfterDelete, callbackTypeAfterFind, } for _, cbName := range callbackTypes { if methodValue := callBackToMethodValue(modelValue, cbName); methodValue.IsValid() { switch methodValue.Type().String() { case "func(*gorm.DB) error": // TODO hack reflect.Indirect(reflect.ValueOf(schema)).FieldByName(string(cbName)).SetBool(true) default:
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:52:33 UTC 2024 - 13.7K bytes - Viewed (0) -
subprojects/diagnostics/src/main/resources/org/gradle/api/tasks/diagnostics/htmldependencyreport/jquery.jstree.js
this.each(function() { var instance = instances[$.data(this, "jstree_instance_id")], methodValue = (instance && $.isFunction(instance[settings])) ? instance[settings].apply(instance, args) : instance; if(typeof methodValue !== "undefined" && (settings.indexOf("is_") === 0 || (methodValue !== true && methodValue !== false))) { returnValue = methodValue; return false; } }); } else { this.each(function() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 09:03:42 UTC 2021 - 49.5K bytes - Viewed (0) -
doc/go1.17_spec.html
<a href="#Function_literals">function literal</a> or <a href="#Method_values">method value</a>. </p> <p> It is legal to derive a function value from a method of an interface type. The resulting function takes an explicit receiver of that interface type. </p> <h3 id="Method_values">Method values</h3> <p> If the expression <code>x</code> has static type <code>T</code> and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0) -
doc/go_spec.html
<a href="#Function_literals">function literal</a> or <a href="#Method_values">method value</a>. </p> <p> It is legal to derive a function value from a method of an interface type. The resulting function takes an explicit receiver of that interface type. </p> <h3 id="Method_values">Method values</h3> <p> If the expression <code>x</code> has static type <code>T</code> and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (0) -
src/reflect/value.go
// section of frame is set. // // regs contains the argument values passed in registers and will contain // the values returned from ctxt.fn in registers. func callMethod(ctxt *methodValue, frame unsafe.Pointer, retValid *bool, regs *abi.RegArgs) { rcvr := ctxt.rcvr rcvrType, valueFuncType, methodFn := methodReceiver("call", rcvr, ctxt.method) // There are two ABIs at play here. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0) -
src/reflect/all_test.go
} } func (k KeepMethodLive) Method2(i int) { clobber() ValueOf(k).MethodByName("Method1").Interface().(func(i int))(i) } func TestKeepMethodLive(t *testing.T) { // Test that we keep methodValue live as long as it is // referenced on the stack. KeepMethodLive{}.Method1(10) } // clobber tries to clobber unreachable memory. func clobber() { runtime.GC() for i := 1; i < 32; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)