Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,413 for checkIn (0.13 sec)

  1. src/cmd/compile/internal/ssa/check.go

    	memCheck(f)
    }
    
    func memCheck(f *Func) {
    	// Check that if a tuple has a memory type, it is second.
    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    			if v.Type.IsTuple() && v.Type.FieldType(0).IsMemory() {
    				f.Fatalf("memory is first in a tuple: %s\n", v.LongString())
    			}
    		}
    	}
    
    	// Single live memory checks.
    	// These checks only work if there are no memory copies.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/go/types/signature.go

    // Implementation
    
    // funcType type-checks a function or method type.
    func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) {
    	check.openScope(ftyp, "function")
    	check.scope.isFunc = true
    	check.recordScope(ftyp, check.scope)
    	sig.scope = check.scope
    	defer check.closeScope()
    
    	if recvPar != nil && len(recvPar.List) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    			expectEsimatedCost: func(c checker.CostEstimate) checker.CostEstimate {
    				return checker.CostEstimate{Min: c.Min + 5, Max: c.Max + 9}
    			},
    			expectRuntimeCost: func(c uint64) uint64 { return c + 5 },
    		},
    		{
    			ops: []string{".containsCIDR(cidr('192.168.0.0/16'))"},
    			expectEsimatedCost: func(c checker.CostEstimate) checker.CostEstimate {
    				return checker.CostEstimate{Min: c.Min + 5, Max: c.Max + 9}
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/stdlib_test.go

    		"bug398.go",      // types2 doesn't check for anonymous interface cycles (go.dev/issue/56103)
    		"issue6889.go",   // gc-specific test
    		"issue11362.go",  // canonical import path check
    		"issue16369.go",  // types2 handles this correctly - not an issue
    		"issue18459.go",  // types2 doesn't check validity of //go:xxx directives
    		"issue18882.go",  // types2 doesn't check validity of //go:xxx directives
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/expr.go

    func (check *Checker) expr(T *target, x *operand, e syntax.Expr) {
    	check.rawExpr(T, x, e, nil, false)
    	check.exclude(x, 1<<novalue|1<<builtin|1<<typexpr)
    	check.singleValue(x)
    }
    
    // genericExpr is like expr but the result may also be generic.
    func (check *Checker) genericExpr(x *operand, e syntax.Expr) {
    	check.rawExpr(nil, x, e, nil, true)
    	check.exclude(x, 1<<novalue|1<<builtin|1<<typexpr)
    	check.singleValue(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/signature.go

    // Implementation
    
    // funcType type-checks a function or method type.
    func (check *Checker) funcType(sig *Signature, recvPar *syntax.Field, tparams []*syntax.Field, ftyp *syntax.FuncType) {
    	check.openScope(ftyp, "function")
    	check.scope.isFunc = true
    	check.recordScope(ftyp, check.scope)
    	sig.scope = check.scope
    	defer check.closeScope()
    
    	if recvPar != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/alias.go

    // rhs must not be nil.
    func (check *Checker) newAlias(obj *TypeName, rhs Type) *Alias {
    	assert(rhs != nil)
    	a := new(Alias)
    	a.obj = obj
    	a.orig = a
    	a.fromRHS = rhs
    	if obj.typ == nil {
    		obj.typ = a
    	}
    
    	// Ensure that a.actual is set at the end of type checking.
    	if check != nil {
    		check.needsCleanup(a)
    	}
    
    	return a
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. src/go/types/errors.go

    // The positioner interface is used to extract the position of type-checker errors.
    type positioner interface {
    	Pos() token.Pos
    }
    
    func (check *Checker) error(at positioner, code Code, msg string) {
    	err := check.newError(code)
    	err.addf(at, "%s", msg)
    	err.report()
    }
    
    func (check *Checker) errorf(at positioner, code Code, format string, args ...any) {
    	err := check.newError(code)
    	err.addf(at, format, args...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. src/go/types/alias.go

    // rhs must not be nil.
    func (check *Checker) newAlias(obj *TypeName, rhs Type) *Alias {
    	assert(rhs != nil)
    	a := new(Alias)
    	a.obj = obj
    	a.orig = a
    	a.fromRHS = rhs
    	if obj.typ == nil {
    		obj.typ = a
    	}
    
    	// Ensure that a.actual is set at the end of type checking.
    	if check != nil {
    		check.needsCleanup(a)
    	}
    
    	return a
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/errors.go

    }
    
    func (check *Checker) error(at poser, code Code, msg string) {
    	err := check.newError(code)
    	err.addf(at, "%s", msg)
    	err.report()
    }
    
    func (check *Checker) errorf(at poser, code Code, format string, args ...any) {
    	err := check.newError(code)
    	err.addf(at, format, args...)
    	err.report()
    }
    
    func (check *Checker) softErrorf(at poser, code Code, format string, args ...any) {
    	err := check.newError(code)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top