Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 675 for checkIn (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking.go

    		return ""
    	}
    	if r.Err != nil {
    		return fmt.Sprintf("%v: type checking error: %v\n", r.GVK, r.Err)
    	}
    	return fmt.Sprintf("%v: %s\n", r.GVK, r.Issues)
    }
    
    // Check preforms the type check against the given policy, and format the result
    // as []ExpressionWarning that is ready to be set in policy.Status
    // The result is nil if type checking returns no warning.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/stmt.go

    			}
    		}
    	}
    }
    
    func (check *Checker) openScope(node syntax.Node, comment string) {
    	check.openScopeUntil(node, syntax.EndPos(node), comment)
    }
    
    func (check *Checker) openScopeUntil(node syntax.Node, end syntax.Pos, comment string) {
    	scope := NewScope(check.scope, node.Pos(), end, comment)
    	check.recordScope(node, scope)
    	check.scope = scope
    }
    
    func (check *Checker) closeScope() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. src/go/types/stmt.go

    	defer func(env environment, indent int) {
    		check.environment = env
    		check.indent = indent
    	}(check.environment, check.indent)
    	check.environment = environment{
    		decl:  decl,
    		scope: sig.scope,
    		iota:  iota,
    		sig:   sig,
    	}
    	check.indent = 0
    
    	check.stmtList(0, body.List)
    
    	if check.hasLabel {
    		check.labels(body)
    	}
    
    	if sig.results.Len() > 0 && !check.isTerminating(body, "") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/call.go

    // expressions on the lhs of an assignment.
    func (check *Checker) useLHS(args ...syntax.Expr) bool { return check.useN(args, true) }
    
    func (check *Checker) useN(args []syntax.Expr, lhs bool) bool {
    	ok := true
    	for _, e := range args {
    		if !check.use1(e, lhs) {
    			ok = false
    		}
    	}
    	return ok
    }
    
    func (check *Checker) use1(e syntax.Expr, lhs bool) bool {
    	var x operand
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  5. src/go/types/call.go

    func (check *Checker) use(args ...ast.Expr) bool { return check.useN(args, false) }
    
    // useLHS is like use, but doesn't "use" top-level identifiers.
    // It should be called instead of use if the arguments are
    // expressions on the lhs of an assignment.
    func (check *Checker) useLHS(args ...ast.Expr) bool { return check.useN(args, true) }
    
    func (check *Checker) useN(args []ast.Expr, lhs bool) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  6. src/go/types/instantiate.go

    	case got > want:
    		qual = "too many"
    	default:
    		return true
    	}
    
    	msg := check.sprintf("%s type arguments for type %s: have %d, want %d", qual, name, got, want)
    	if check != nil {
    		check.error(atPos(pos), WrongTypeArgCount, msg)
    		return false
    	}
    
    	panic(fmt.Sprintf("%v: %s", pos, msg))
    }
    
    func (check *Checker) verify(pos token.Pos, tparams []*TypeParam, targs []Type, ctxt *Context) (int, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  7. cmd/xl-storage-disk-id-check.go

    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case <-t.C:
    			if !monitor() {
    				return
    			}
    		}
    	}
    }
    
    // checkID will check if the disk ID matches the provided ID.
    func (p *xlStorageDiskIDCheck) checkID(wantID string) (err error) {
    	if wantID == "" {
    		return nil
    	}
    	id, err := p.storage.GetDiskID()
    	if err != nil {
    		return err
    	}
    	if id != wantID {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  8. src/go/types/operand.go

    // detailed explanation of the failure (result != ""). The returned error code
    // is only valid if the (first) result is false. The check parameter may be nil
    // if assignableTo is invoked through an exported API call, i.e., when all
    // methods have been type-checked.
    func (x *operand) assignableTo(check *Checker, T Type, cause *string) (bool, Code) {
    	if x.mode == invalid || !isValid(T) {
    		return true, 0 // avoid spurious errors
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/instantiate.go

    	case got > want:
    		qual = "too many"
    	default:
    		return true
    	}
    
    	msg := check.sprintf("%s type arguments for type %s: have %d, want %d", qual, name, got, want)
    	if check != nil {
    		check.error(atPos(pos), WrongTypeArgCount, msg)
    		return false
    	}
    
    	panic(fmt.Sprintf("%v: %s", pos, msg))
    }
    
    func (check *Checker) verify(pos syntax.Pos, tparams []*TypeParam, targs []Type, ctxt *Context) (int, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/operand.go

    // detailed explanation of the failure (result != ""). The returned error code
    // is only valid if the (first) result is false. The check parameter may be nil
    // if assignableTo is invoked through an exported API call, i.e., when all
    // methods have been type-checked.
    func (x *operand) assignableTo(check *Checker, T Type, cause *string) (bool, Code) {
    	if x.mode == invalid || !isValid(T) {
    		return true, 0 // avoid spurious errors
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top