Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for makeArg (0.17 sec)

  1. src/go/types/api_test.go

    		useMap := make(map[*ast.Ident]Object)
    		makePkg := func(src string) *Package {
    			pkg, err := typecheck(src, &conf, &Info{Instances: instMap, Uses: useMap})
    			// allow error for issue51803
    			if err != nil && (pkg == nil || pkg.Name() != "issue51803") {
    				t.Fatal(err)
    			}
    			imports[pkg.Name()] = pkg
    			return pkg
    		}
    		makePkg(lib)
    		pkg := makePkg(test.src)
    
    		t.Run(pkg.Name(), func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/language/language.go

    )
    
    // Tag represents a BCP 47 language tag. It is used to specify an instance of a
    // specific language or locale. All language tag values are guaranteed to be
    // well-formed.
    type Tag compact.Tag
    
    func makeTag(t language.Tag) (tag Tag) {
    	return Tag(compact.Make(t))
    }
    
    func (t *Tag) tag() language.Tag {
    	return (*compact.Tag)(t).Tag()
    }
    
    func (t *Tag) isCompact() bool {
    	return (*compact.Tag)(t).IsCompact()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. pilot/pkg/config/kube/crdclient/client_test.go

    		if len(l) != 0 {
    			return fmt.Errorf("expected no items returned for unknown CRD")
    		}
    		return nil
    	}, retry.Timeout(time.Second*5), retry.Converge(5))
    
    	clienttest.MakeCRD(t, fake, r.GroupVersionResource())
    
    	retry.UntilSuccessOrFail(t, func() error {
    		l := store.List(r.GroupVersionKind(), "")
    		if len(l) != 1 {
    			return fmt.Errorf("expected items returned")
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 02:58:52 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/driver/settings.go

    		configs = append(configs, settings.Configs...)
    	}
    
    	// Convert to menu entries.
    	result := make([]configMenuEntry, len(configs))
    	lastMatch := -1
    	for i, cfg := range configs {
    		dst, changed := cfg.config.makeURL(u)
    		if !changed {
    			lastMatch = i
    		}
    		// Use a relative URL to work in presence of stripping/redirects in webui.go.
    		rel := &url.URL{RawQuery: dst.RawQuery, ForceQuery: true}
    		result[i] = configMenuEntry{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/image/jpeg/scan.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package jpeg
    
    import (
    	"image"
    )
    
    // makeImg allocates and initializes the destination image.
    func (d *decoder) makeImg(mxx, myy int) {
    	if d.nComp == 1 {
    		m := image.NewGray(image.Rect(0, 0, 8*mxx, 8*myy))
    		d.img1 = m.SubImage(image.Rect(0, 0, d.width, d.height)).(*image.Gray)
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. src/syscall/js/js.go

    	// value chosen for being power of two, and enough to handle all web APIs
    	// in particular, note that WebGL2's texImage2D takes up to 10 arguments
    	const maxStackArgs = 16
    	if size <= maxStackArgs {
    		// as long as makeArgs is inlined, these will be stack-allocated
    		argVals = make([]Value, size, maxStackArgs)
    		argRefs = make([]ref, size, maxStackArgs)
    	} else {
    		// allocates on the heap, but exceeding maxStackArgs should be rare
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Platform.java

        return Arrays.copyOfRange(source, from, to, (Class<? extends T[]>) arrayOfType.getClass());
      }
    
      /**
       * Configures the given map maker to use weak keys, if possible; does nothing otherwise (i.e., in
       * GWT). This is sometimes acceptable, when only server-side code could generate enough volume
       * that reclamation becomes important.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Platform.java

        return Arrays.copyOfRange(source, from, to, (Class<? extends T[]>) arrayOfType.getClass());
      }
    
      /**
       * Configures the given map maker to use weak keys, if possible; does nothing otherwise (i.e., in
       * GWT). This is sometimes acceptable, when only server-side code could generate enough volume
       * that reclamation becomes important.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go

    			return true
    		}
    	}
    	return false
    }
    
    func openBrowser(url string, o *plugin.Options) {
    	// Construct URL.
    	baseURL, _ := gourl.Parse(url)
    	current := currentConfig()
    	u, _ := current.makeURL(*baseURL)
    
    	// Give server a little time to get ready.
    	time.Sleep(time.Millisecond * 500)
    
    	for _, b := range browsers() {
    		args := strings.Split(b, " ")
    		if len(args) == 0 {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. src/runtime/syscall_windows_test.go

    		return cbFuncsRegABI
    	}
    	return cbFuncs
    }
    
    type cbDLL struct {
    	name      string
    	buildArgs func(out, src string) []string
    }
    
    func (d *cbDLL) makeSrc(t *testing.T, path string) {
    	f, err := os.Create(path)
    	if err != nil {
    		t.Fatalf("failed to create source file: %v", err)
    	}
    	defer f.Close()
    
    	fmt.Fprint(f, `
    #include <stdint.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 16:31:35 UTC 2023
    - 32.5K bytes
    - Viewed (0)
Back to top