Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 7,737 for check3 (0.29 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/directive/directive.go

    	case "//go:debug":
    		if check.file == nil {
    			check.pass.Reportf(pos, "//go:debug directive only valid in Go source files")
    		} else if check.file.Name.Name != "main" && !strings.HasSuffix(check.filename, "_test.go") {
    			check.pass.Reportf(pos, "//go:debug directive only valid in package main or test")
    		} else if !check.inHeader {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api.go

    // Package types2 declares the data types and implements
    // the algorithms for type-checking of Go packages. Use
    // Config.Check to invoke the type checker for a package.
    // Alternatively, create a new type checker with NewChecker
    // and invoke it incrementally by calling Checker.Files.
    //
    // Type-checking consists of several interdependent phases:
    //
    // Name resolution maps each identifier (syntax.Name) in the program to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. releasenotes/notes/check-disabled-status.yaml

    lei-tang <******@****.***> 1686256325 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 08 20:32:05 UTC 2023
    - 176 bytes
    - Viewed (0)
  4. src/go/types/conversions.go

    // may be set to the cause for the failure.
    // The check parameter may be nil if convertibleTo is invoked through an
    // exported API call, i.e., when all methods have been type-checked.
    func (x *operand) convertibleTo(check *Checker, T Type, cause *string) bool {
    	// "x is assignable to T"
    	if ok, _ := x.assignableTo(check, T, cause); ok {
    		return true
    	}
    
    	origT := T
    	V := Unalias(x.typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/const.go

    	if !math.IsInf(f, 0) {
    		return constant.MakeFloat64(f)
    	}
    	return nil
    }
    
    // representable checks that a constant operand is representable in the given
    // basic type.
    func (check *Checker) representable(x *operand, typ *Basic) {
    	v, code := check.representation(x, typ)
    	if code != 0 {
    		check.invalidConversion(code, x, typ)
    		x.mode = invalid
    		return
    	}
    	assert(v != nil)
    	x.val = v
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/healthz/healthz.go

    		for _, check := range checks {
    			// no-op the check if we've specified we want to exclude the check
    			if excluded.Has(check.Name()) {
    				excluded.Delete(check.Name())
    				fmt.Fprintf(&individualCheckOutput, "[+]%s excluded: ok\n", check.Name())
    				continue
    			}
    			if err := check.Check(r); err != nil {
    				slis.ObserveHealthcheck(context.Background(), check.Name(), name, slis.Error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/decl.go

    func (check *Checker) objDecl(obj Object, def *TypeName) {
    	if check.conf.Trace && obj.Type() == nil {
    		if check.indent == 0 {
    			fmt.Println() // empty line between top-level objects for readability
    		}
    		check.trace(obj.Pos(), "-- checking %s (%s, objPath = %s)", obj, obj.color(), pathString(check.objPath))
    		check.indent++
    		defer func() {
    			check.indent--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/labels.go

    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    	. "internal/types/errors"
    )
    
    // labels checks correct label use in body.
    func (check *Checker) labels(body *syntax.BlockStmt) {
    	// set of all labels in this body
    	all := NewScope(nil, body.Pos(), syntax.EndPos(body), "label")
    
    	fwdJumps := check.blockBranches(all, nil, nil, body.List)
    
    	// If there are any forward jumps left, no label was found for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. src/go/types/version.go

    // current package.
    func (check *Checker) verifyVersionf(at positioner, v goVersion, format string, args ...interface{}) bool {
    	if !check.allowVersion(at, v) {
    		check.versionErrorf(at, v, format, args...)
    		return false
    	}
    	return true
    }
    
    // TODO(gri) Consider a more direct (position-independent) mechanism
    //           to identify which file we're in so that version checks
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 23:12:40 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/go/types/expr.go

    func (check *Checker) expr(T *target, x *operand, e ast.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 ast.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
    - 49.7K bytes
    - Viewed (0)
Back to top