Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for npars (0.31 sec)

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

    			}
    		} else {
    			// variadic_func(a, b, c)
    			if nargs >= npars-1 {
    				// Create custom parameters for arguments: keep
    				// the first npars-1 parameters and add one for
    				// each argument mapping to the ... parameter.
    				vars := make([]*Var, npars-1) // npars > 0 for variadic functions
    				copy(vars, sig.params.vars)
    				last := sig.params.vars[npars-1]
    				typ := last.typ.(*Slice).elem
    				for len(vars) < nargs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  2. src/go/types/call.go

    			}
    		} else {
    			// variadic_func(a, b, c)
    			if nargs >= npars-1 {
    				// Create custom parameters for arguments: keep
    				// the first npars-1 parameters and add one for
    				// each argument mapping to the ... parameter.
    				vars := make([]*Var, npars-1) // npars > 0 for variadic functions
    				copy(vars, sig.params.vars)
    				last := sig.params.vars[npars-1]
    				typ := last.typ.(*Slice).elem
    				for len(vars) < nargs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator_test.go

    		t, expected string
    	}{
    		{"aaa\n  --- asd\n TODO: tooooodo\n toooodoooooo\n", "aaa"},
    		{"aaa\nasd\n TODO: tooooodo\nbbbb\n --- toooodoooooo\n", "aaa asd bbbb"},
    		{" TODO: tooooodo\n", ""},
    		{"Par1\n\nPar2\n\n", "Par1\\n\\nPar2"},
    		{"", ""},
    		{" ", ""},
    		{" \n", ""},
    		{" \n\n ", ""},
    		{"Example:\n\tl1\n\t\tl2\n", "Example:\\n\\tl1\\n\\t\\tl2"},
    	}
    
    	for _, test := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 1.1K bytes
    - Viewed (0)
  4. src/go/types/subst.go

    )
    
    type substMap map[*TypeParam]Type
    
    // makeSubstMap creates a new substitution map mapping tpars[i] to targs[i].
    // If targs[i] is nil, tpars[i] is not substituted.
    func makeSubstMap(tpars []*TypeParam, targs []Type) substMap {
    	assert(len(tpars) == len(targs))
    	proj := make(substMap, len(tpars))
    	for i, tpar := range tpars {
    		proj[tpar] = targs[i]
    	}
    	return proj
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/subst.go

    )
    
    type substMap map[*TypeParam]Type
    
    // makeSubstMap creates a new substitution map mapping tpars[i] to targs[i].
    // If targs[i] is nil, tpars[i] is not substituted.
    func makeSubstMap(tpars []*TypeParam, targs []Type) substMap {
    	assert(len(tpars) == len(targs))
    	proj := make(substMap, len(tpars))
    	for i, tpar := range tpars {
    		proj[tpar] = targs[i]
    	}
    	return proj
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/reflect/export_test.go

    	if ft.Kind_&abi.KindGCProg != 0 {
    		panic("can't handle gc programs")
    	}
    
    	// Expand frame type's GC bitmap into byte-map.
    	ptrs = ft.Pointers()
    	if ptrs {
    		nptrs := ft.PtrBytes / goarch.PtrSize
    		gcdata := ft.GcSlice(0, (nptrs+7)/8)
    		for i := uintptr(0); i < nptrs; i++ {
    			gc = append(gc, gcdata[i/8]>>(i%8)&1)
    		}
    	}
    	return
    }
    
    func TypeLinks() []string {
    	var r []string
    	sections, offset := typelinks()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. pkg/proxy/util/nodeport_addresses.go

    func (npa *NodePortAddresses) String() string {
    	return fmt.Sprintf("%v", npa.cidrStrings)
    }
    
    // MatchAll returns true if npa matches all node IPs (of npa's given family)
    func (npa *NodePortAddresses) MatchAll() bool {
    	return npa.matchAll
    }
    
    // GetNodeIPs return all matched node IP addresses for npa's CIDRs. If no matching
    // IPs are found, it returns an empty list.
    // NetworkInterfacer is injected for test purpose.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/liveness/plive.go

    // Solve the liveness dataflow equations.
    func (lv *liveness) solve() {
    	// These temporary bitvectors exist to avoid successive allocations and
    	// frees within the loop.
    	nvars := int32(len(lv.vars))
    	newlivein := bitvec.New(nvars)
    	newliveout := bitvec.New(nvars)
    
    	// Walk blocks in postorder ordering. This improves convergence.
    	po := lv.f.Postorder()
    
    	// Iterate through the blocks in reverse round-robin fashion. A work
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_timeout_stdin.txt

    	# closes the read side of the stderr pipe, and the subprocess will eventually
    	# exit due to a failed write to that pipe.
    
    stdout '^--- PASS: TestOrphanCmd .*\nPASS\nstdin closed'
    stdout '^\*\*\* Test I/O incomplete \d+.* after exiting\.\nexec: WaitDelay expired before I/O complete\nFAIL\s+example\s+\d+(\.\d+)?s'
    
    -- go.mod --
    module example
    
    go 1.20
    -- main_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 20:23:27 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. doc/README.md

    ## For the release team
    
    The `relnote` tool, at `golang.org/x/build/cmd/relnote`, operates on the files
    in `doc/next`.
    
    As a release cycle nears completion, run `relnote todo` to get a list of
    unfinished release note work.
    
    To prepare the release notes for a release, run `relnote generate`.
    That will merge the `.md` files in `next` into a single file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 19:56:43 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top