Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 86 for perfunc (0.36 sec)

  1. src/cmd/compile/internal/typecheck/stmt.go

    	}
    
    	Stmts(n.Body)
    }
    
    // tcReturn typechecks an ORETURN node.
    func tcReturn(n *ir.ReturnStmt) ir.Node {
    	if ir.CurFunc == nil {
    		base.FatalfAt(n.Pos(), "return outside function")
    	}
    
    	typecheckargs(n)
    	if len(n.Results) != 0 {
    		typecheckaste(ir.ORETURN, nil, false, ir.CurFunc.Type().Results(), n.Results, func() string { return "return argument" })
    	}
    	return n
    }
    
    // select
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  2. pkg/controller/deployment/deployment_controller_test.go

    		t.Fatalf("queue.Len() = %v, want %v", got, want)
    	}
    	key, done := dc.queue.Get()
    	if key == "" || done {
    		t.Fatalf("failed to enqueue controller for rs %v", rs1.Name)
    	}
    	expectedKey, _ := controller.KeyFunc(d1)
    	if got, want := key, expectedKey; got != want {
    		t.Errorf("queue.Get() = %v, want %v", got, want)
    	}
    
    	dc.addReplicaSet(logger, rs2)
    	if got, want := dc.queue.Len(), 1; got != want {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/text/unicode/norm/iter.go

    	buf    [maxByteBufferSize]byte
    	info   Properties // first character saved from previous iteration
    	next   iterFunc   // implementation of next depends on form
    	asciiF iterFunc
    
    	p        int    // current position in input source
    	multiSeg []byte // remainder of multi-segment decomposition
    }
    
    type iterFunc func(*Iter) []byte
    
    // Init initializes i to iterate over src after normalizing it to Form f.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 11K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/object.go

    	origin      *Func // if non-nil, the Func from which this one was instantiated
    }
    
    // NewFunc returns a new function with the given signature, representing
    // the function's type.
    func NewFunc(pos syntax.Pos, pkg *Package, name string, sig *Signature) *Func {
    	var typ Type
    	if sig != nil {
    		typ = sig
    	} else {
    		// Don't store a (typed) nil *Signature.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/ureader.go

    	implicit := len(methods) == 0 && len(embeddeds) == 1 && r.Bool()
    
    	for i := range methods {
    		pos := r.pos()
    		pkg, name := r.selector()
    		mtyp := r.signature(nil, nil, nil)
    		methods[i] = types.NewFunc(pos, pkg, name, mtyp)
    	}
    
    	for i := range embeddeds {
    		embeddeds[i] = r.typ()
    	}
    
    	iface := types.NewInterfaceType(methods, embeddeds)
    	if implicit {
    		iface.MarkImplicit()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    var lockerType *types.Interface
    
    // Construct a sync.Locker interface type.
    func init() {
    	nullary := types.NewSignature(nil, nil, nil, false) // func()
    	methods := []*types.Func{
    		types.NewFunc(token.NoPos, nil, "Lock", nullary),
    		types.NewFunc(token.NoPos, nil, "Unlock", nullary),
    	}
    	lockerType = types.NewInterface(methods, nil).Complete()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. pkg/registry/apps/deployment/storage/storage.go

    }
    
    // NewREST returns a RESTStorage object that will work against deployments.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, *RollbackREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &apps.Deployment{} },
    		NewListFunc:               func() runtime.Object { return &apps.DeploymentList{} },
    		DefaultQualifiedResource:  apps.Resource("deployments"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/unicode/norm/iter.go

    	buf    [maxByteBufferSize]byte
    	info   Properties // first character saved from previous iteration
    	next   iterFunc   // implementation of next depends on form
    	asciiF iterFunc
    
    	p        int    // current position in input source
    	multiSeg []byte // remainder of multi-segment decomposition
    }
    
    type iterFunc func(*Iter) []byte
    
    // Init initializes i to iterate over src after normalizing it to Form f.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/debug/elf/symbols_test.go

    package elf
    
    import (
    	"io"
    	"path"
    	"reflect"
    	"testing"
    )
    
    // TODO: remove duplicate code
    func TestSymbols(t *testing.T) {
    	do := func(file string, ts []Symbol, getfunc func(*File) ([]Symbol, error)) {
    		var f *File
    		var err error
    		if path.Ext(file) == ".gz" {
    			var r io.ReaderAt
    			if r, err = decompress(file); err == nil {
    				f, err = NewFile(r)
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 05 18:18:26 UTC 2019
    - 13.4K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/iimport.go

    	case 'F', 'G':
    		var tparams []*types.TypeParam
    		if tag == 'G' {
    			tparams = r.tparamList()
    		}
    		sig := r.signature(nil, nil, tparams)
    		r.declare(types.NewFunc(pos, r.currPkg, name, sig))
    
    	case 'T', 'U':
    		// Types can be recursive. We need to setup a stub
    		// declaration before recurring.
    		obj := types.NewTypeName(pos, r.currPkg, name, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top