Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 84 for newFunc (0.47 sec)

  1. src/cmd/compile/internal/types2/universe.go

    		// error.Error() string
    		recv := NewVar(nopos, nil, "", typ)
    		res := NewVar(nopos, nil, "", Typ[String])
    		sig := NewSignatureType(recv, nil, nil, nil, NewTuple(res), false)
    		err := NewFunc(nopos, nil, "Error", sig)
    
    		// interface{ Error() string }
    		ityp := &Interface{methods: []*Func{err}, complete: true}
    		computeInterfaceTypeSet(nil, nopos, ityp) // prevent races due to lazy computation of tset
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/go/types/universe.go

    		// error.Error() string
    		recv := NewVar(nopos, nil, "", typ)
    		res := NewVar(nopos, nil, "", Typ[String])
    		sig := NewSignatureType(recv, nil, nil, nil, NewTuple(res), false)
    		err := NewFunc(nopos, nil, "Error", sig)
    
    		// interface{ Error() string }
    		ityp := &Interface{methods: []*Func{err}, complete: true}
    		computeInterfaceTypeSet(nil, nopos, ityp) // prevent races due to lazy computation of tset
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. pkg/controlplane/reconcilers/lease.go

    	s.destroyFn()
    }
    
    // NewLeases creates a new etcd-based Leases implementation.
    func NewLeases(config *storagebackend.ConfigForResource, baseKey string, leaseTime time.Duration) (Leases, error) {
    	// note that newFunc, newListFunc and resourcePrefix
    	// can be left blank unless the storage.Watch method is used
    	leaseStorage, destroyFn, err := storagefactory.Create(*config, nil, nil, "")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go

    func NewPeerEndpointLeaseReconciler(config *storagebackend.ConfigForResource, baseKey string, leaseTime time.Duration) (PeerEndpointLeaseReconciler, error) {
    	// note that newFunc, newListFunc and resourcePrefix
    	// can be left blank unless the storage.Watch method is used
    	leaseStorage, destroyFn, err := storagefactory.Create(*config, nil, nil, "")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  5. src/go/internal/gccgoimporter/parser.go

    			results := p.parseResultList(pkg)
    			p.skipInlineBody()
    			p.expectEOL()
    
    			sig := types.NewSignatureType(receiver, nil, nil, params, results, isVariadic)
    			nt.AddMethod(types.NewFunc(token.NoPos, pkg, name, sig))
    		}
    	}
    
    	return nt
    }
    
    func (p *parser) parseInt64() int64 {
    	lit := p.expect(scanner.Int)
    	n, err := strconv.ParseInt(lit, 10, 64)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssagen/abi.go

    		return
    	}
    
    	// Reuse f's types.Sym to create a new ODCLFUNC/function.
    	// TODO(mdempsky): Means we can't set sym.Def in Declfunc, ugh.
    	fn := ir.NewFunc(pos, pos, f.Sym(), types.NewSignature(nil,
    		typecheck.NewFuncParams(ft.Params()),
    		typecheck.NewFuncParams(ft.Results())))
    	fn.ABI = wrapperABI
    	typecheck.DeclFunc(fn)
    
    	fn.SetABIWrapper(true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	newFunc := func() runtime.Object { return &example.Pod{} }
    	newListFunc := func() runtime.Object { return &example.PodList{} }
    
    	sc.Codec = apitesting.TestStorageCodec(codecs, examplev1.SchemeGroupVersion)
    	s, dFunc, err := factory.Create(*sc.ForResource(schema.GroupResource{Resource: "pods"}), newFunc, newListFunc, "/pods")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/staticinit/sched.go

    	//		globmapvar = <map initialization>
    	//	}
    	//
    	// Note: cmd/link expects the function name to contain "map.init".
    	minitsym := typecheck.LookupNum("map.init.", mapinitgen)
    	mapinitgen++
    
    	fn := ir.NewFunc(n.Pos(), n.Pos(), minitsym, types.NewSignature(nil, nil, nil))
    	fn.SetInlinabilityChecked(true) // suppress inlining (which would defeat the point)
    	typecheck.DeclFunc(fn)
    	if base.Debug.WrapGlobalMapDbg > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/func_test.go

    func (c *Conf) Fun(entry string, blocs ...bloc) fun {
    	// TODO: Either mark some SSA tests as t.Parallel,
    	// or set up a shared Cache and Reset it between tests.
    	// But not both.
    	f := c.config.NewFunc(c.Frontend(), new(Cache))
    	f.pass = &emptyPass
    	f.cachedLineStarts = newXposmap(map[int]lineRange{0: {0, 100}, 1: {0, 100}, 2: {0, 100}, 3: {0, 100}, 4: {0, 100}})
    
    	blocks := make(map[string]*Block)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:01:04 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/rangefunc/rewrite.go

    	intType := types2.Universe.Lookup("int").Type()
    
    	// func deferrangefunc() unsafe.Pointer
    	obj := types2.NewFunc(nopos, pkg, "deferrangefunc", types2.NewSignatureType(nil, nil, nil, nil, types2.NewTuple(types2.NewParam(nopos, pkg, "extra", anyType)), false))
    	pkg.Scope().Insert(obj)
    
    	// func panicrangestate()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top