Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,434 for meth (0.15 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/ui.go

    		// Report methods of T and *T, preferring those of T.
    		pmset := msets.MethodSet(types.NewPointer(T))
    		for i, n := 0, pmset.Len(); i < n; i++ {
    			meth := pmset.At(i)
    			if m := mset.Lookup(meth.Obj().Pkg(), meth.Obj().Name()); m != nil {
    				meth = m
    			}
    			result = append(result, meth)
    		}
    
    	}
    	return result
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/testdata/deadcode/structof_funcof.go

    		false,
    	)
    	println(t.Name())
    }
    
    func main() {
    	useStructOf()
    	useFuncOf()
    
    	var t T
    	meth, _ := reflect.TypeOf(t).MethodByName("F")
    	ft := meth.Type
    	at := ft.In(1)
    	v := reflect.New(at).Elem()
    	methV := v.MethodByName("M")
    	methV.Call([]reflect.Value{v})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 994 bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/TestPluginConvention1.groovy

     */
     
    package org.gradle.internal.extensibility
    
    class TestPluginConvention1 {
        String a = 'a1'
        String b = 'b'
        String c = 'c' 
    
        String meth() {
            'called1'
        }
    
        String meth(String arg) {
            'called1' + arg
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 858 bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/testdata/deadcode/ifacemethod6.go

    func (s S) N() { println("S.N") }
    
    type T float64
    
    func (t T) F(s S) {}
    
    func main() {
    	var t T
    	meth, _ := reflect.TypeOf(t).MethodByName("F")
    	ft := meth.Type
    	at := ft.In(1)
    	v := reflect.New(at).Elem()
    	methV := v.MethodByName("M")
    	methV.Call([]reflect.Value{v})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 666 bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/testdata/deadcode/ifacemethod5.go

    import "reflect"
    
    type S int
    
    func (s S) M() { println("S.M") }
    
    type I interface{ M() }
    
    type T float64
    
    func (t T) F(s S) {}
    
    func main() {
    	var t T
    	meth, _ := reflect.TypeOf(t).MethodByName("F")
    	ft := meth.Type
    	at := ft.In(1)
    	v := reflect.New(at).Elem()
    	v.Interface().(I).M()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 777 bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/TestPluginConvention2.groovy

     * limitations under the License.
     */
     
    package org.gradle.internal.extensibility
    
    class TestPluginConvention2 {
        String a = 'a2'
    
        String meth() {
            'called2'
        }
    
        String meth(String arg) {
            'called2' + arg
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 819 bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/DefaultConventionTest.groovy

        }
    
        @Test void mixesInEachMethodOfConventionObject() {
            assertEquals(convention1.meth('somearg'), convention.extensionsAsDynamicObject.meth('somearg'))
        }
    
        @Test void conventionObjectsMethodsHavePrecedenceAccordingToOrderAdded() {
            assertEquals(convention1.meth(), convention.extensionsAsDynamicObject.meth())
        }
    
        @Test(expected = MissingMethodException) void testMissingMethod() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  8. src/time/tzdata/tzdata.go

    		if get4s(z[idx:]) != zcheader {
    			break
    		}
    		meth := get2s(z[idx+10:])
    		size := get4s(z[idx+24:])
    		namelen := get2s(z[idx+28:])
    		xlen := get2s(z[idx+30:])
    		fclen := get2s(z[idx+32:])
    		off := get4s(z[idx+42:])
    		zname := z[idx+46 : idx+46+namelen]
    		idx += 46 + namelen + xlen + fclen
    		if zname != name {
    			continue
    		}
    		if meth != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 22:30:53 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/closure.go

    		base.Fatalf("methodValueWrapper: unexpected %v (%v)", dot, dot.Op())
    	}
    
    	meth := dot.Sel
    	rcvrtype := dot.X.Type()
    	sym := ir.MethodSymSuffix(rcvrtype, meth, "-fm")
    
    	if sym.Uniq() {
    		return sym.Def.(*ir.Name)
    	}
    	sym.SetUniq(true)
    
    	base.FatalfAt(dot.Pos(), "missing wrapper for %v", meth)
    	panic("unreachable")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. test/codegen/math.go

    	// ppc64x:"FMADD"
    	// riscv64:"FMADDD"
    	return math.FMA(x, y, z)
    }
    
    func fms(x, y, z float64) float64 {
    	// riscv64:"FMSUBD"
    	return math.FMA(x, y, -z)
    }
    
    func fnms(x, y, z float64) float64 {
    	// riscv64:"FNMSUBD",-"FNMADDD"
    	return math.FMA(-x, y, z)
    }
    
    func fnma(x, y, z float64) float64 {
    	// riscv64:"FNMADDD",-"FNMSUBD"
    	return math.FMA(x, -y, -z)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top