Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 40 for newRule (0.24 sec)

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

    	list := make([]*Var, len(args))
    	for i, param := range args {
    		list[i] = NewVar(nopos, nil, "", Default(param))
    	}
    	params := NewTuple(list...)
    	var result *Tuple
    	if res != nil {
    		assert(!isUntyped(res))
    		result = NewTuple(NewVar(nopos, nil, "", res))
    	}
    	return &Signature{params: params, results: result}
    }
    
    // arrayPtrDeref returns A if typ is of the form *A and A is an array;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  2. src/go/types/builtins.go

    	list := make([]*Var, len(args))
    	for i, param := range args {
    		list[i] = NewVar(nopos, nil, "", Default(param))
    	}
    	params := NewTuple(list...)
    	var result *Tuple
    	if res != nil {
    		assert(!isUntyped(res))
    		result = NewTuple(NewVar(nopos, nil, "", res))
    	}
    	return &Signature{params: params, results: result}
    }
    
    // arrayPtrDeref returns A if typ is of the form *A and A is an array;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/ureader.go

    }
    
    func (r *reader) params() *types.Tuple {
    	r.Sync(pkgbits.SyncParams)
    
    	params := make([]*types.Var, r.Len())
    	for i := range params {
    		params[i] = r.param()
    	}
    
    	return types.NewTuple(params...)
    }
    
    func (r *reader) param() *types.Var {
    	r.Sync(pkgbits.SyncParam)
    
    	pos := r.pos()
    	pkg, name := r.localIdent()
    	typ := r.typ()
    
    	return types.NewParam(pos, pkg, name, typ)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/iimport.go

    	}
    	return xs
    }
    
    func (r *importReader) paramList() *types.Tuple {
    	xs := make([]*types.Var, r.uint64())
    	for i := range xs {
    		xs[i] = r.param()
    	}
    	return types.NewTuple(xs...)
    }
    
    func (r *importReader) param() *types.Var {
    	pos := r.pos()
    	name := r.ident()
    	typ := r.typ()
    	return types.NewParam(pos, r.currPkg, name, typ)
    }
    
    func (r *importReader) bool() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/macho.go

    	f, err := os.Open(h.file)
    	if err != nil {
    		return nil, fmt.Errorf("%s: failed to open host object: %v\n", h.file, err)
    	}
    	defer f.Close()
    	sr := io.NewSectionReader(f, h.off, h.length)
    	m, err := macho.NewFile(sr)
    	if err != nil {
    		// Not a valid Mach-O file.
    		return nil, nil
    	}
    	return peekMachoPlatform(m)
    }
    
    // peekMachoPlatform returns the first LC_VERSION_MIN_* or LC_BUILD_VERSION
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  6. src/go/types/check.go

    	if m := check.Types; m != nil {
    		for {
    			tv := m[x]
    			assert(tv.Type != nil) // should have been recorded already
    			pos := x.Pos()
    			tv.Type = NewTuple(
    				NewVar(pos, check.pkg, "", t0),
    				NewVar(pos, check.pkg, "", t1),
    			)
    			m[x] = tv
    			// if x is a parenthesized expression (p.X), update p.X
    			p, _ := x.(*ast.ParenExpr)
    			if p == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. src/os/os_windows_test.go

    	})
    	allowsPerRun(1, func() {
    		syscall.UTF16FromString("abc")
    	})
    }
    
    func TestNewFileInvalid(t *testing.T) {
    	t.Parallel()
    	if f := os.NewFile(uintptr(syscall.InvalidHandle), "invalid"); f != nil {
    		t.Errorf("NewFile(InvalidHandle) got %v want nil", f)
    	}
    }
    
    func TestReadDirPipe(t *testing.T) {
    	dir := `\\.\pipe\`
    	fi, err := os.Stat(dir)
    	if err != nil || !fi.IsDir() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  8. tests/integration/README.md

        ctx.Environment().Case(environment.Native, func() {
            i, err = newNative(ctx)
        })
        ctx.Environment().Case(environment.Kube, func() {
            i, err = newKube(ctx)
        })
        return
    }
    
    func NewOrFail(t test.Failer, ctx resource.Context) Instance {
        i, err := New(ctx)
        if err != nil {
            t.Fatal(err)
        }
        return i
    }
    ```
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/issues_test.go

    	}
    }
    
    func TestIssue55030(t *testing.T) {
    	// makeSig makes the signature func(typ...)
    	makeSig := func(typ Type) {
    		par := NewVar(nopos, nil, "", typ)
    		params := NewTuple(par)
    		NewSignatureType(nil, nil, nil, params, nil, true)
    	}
    
    	// makeSig must not panic for the following (example) types:
    	// []int
    	makeSig(NewSlice(Typ[Int]))
    
    	// string
    	makeSig(Typ[String])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. pkg/test/framework/components/istio/kube.go

    	return addr, nil
    }
    
    func (i *istioImpl) Values() (OperatorValues, error) {
    	return i.values, nil
    }
    
    func (i *istioImpl) ValuesOrFail(test.Failer) OperatorValues {
    	return i.values
    }
    
    func newKube(ctx resource.Context, cfg Config) (Instance, error) {
    	cfg.fillDefaults(ctx)
    
    	scopes.Framework.Infof("=== Istio Component Config ===")
    	scopes.Framework.Infof("\n%s", cfg.String())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top