Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,413 for checkIn (0.18 sec)

  1. src/go/types/api.go

    // Package types 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 ([ast.Ident]) in the program
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. src/go/types/typexpr.go

    func (check *Checker) typ(e ast.Expr) Type {
    	return check.definedType(e, nil)
    }
    
    // varType type-checks the type expression e and returns its type, or Typ[Invalid].
    // The type must not be an (uninstantiated) generic type and it must not be a
    // constraint interface.
    func (check *Checker) varType(e ast.Expr) Type {
    	typ := check.definedType(e, nil)
    	check.validVarType(e, typ)
    	return typ
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/types2/typexpr.go

    func (check *Checker) typ(e syntax.Expr) Type {
    	return check.definedType(e, nil)
    }
    
    // varType type-checks the type expression e and returns its type, or Typ[Invalid].
    // The type must not be an (uninstantiated) generic type and it must not be a
    // constraint interface.
    func (check *Checker) varType(e syntax.Expr) Type {
    	typ := check.definedType(e, nil)
    	check.validVarType(e, typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/go/types/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
    - 31K bytes
    - Viewed (0)
  6. src/go/types/resolver.go

    	if ident.Name == "main" && check.pkg.name == "main" {
    		check.error(ident, InvalidMainDecl, "cannot declare main - must be func")
    		return
    	}
    
    	check.declare(check.pkg.scope, ident, obj, nopos)
    	check.objMap[obj] = d
    	obj.setOrder(uint32(len(check.objMap)))
    }
    
    // filename returns a filename suitable for debugging output.
    func (check *Checker) filename(fileNo int) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. 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)
  8. src/go/types/context.go

    // contexts to canonicalize instances, and it would probably be possible to
    // achieve such a guarantee.
    
    // A Context is an opaque type checking context. It may be used to share
    // identical type instances across type-checked packages or calls to
    // Instantiate. Contexts are safe for concurrent use.
    //
    // The use of a shared context does not guarantee that identical instances are
    // deduplicated in all cases.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/resolver.go

    	if ident.Value == "main" && check.pkg.name == "main" {
    		check.error(ident, InvalidMainDecl, "cannot declare main - must be func")
    		return
    	}
    
    	check.declare(check.pkg.scope, ident, obj, nopos)
    	check.objMap[obj] = d
    	obj.setOrder(uint32(len(check.objMap)))
    }
    
    // filename returns a filename suitable for debugging output.
    func (check *Checker) filename(fileNo int) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K 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