Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,677 for checkIn (0.11 sec)

  1. 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:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/named.go

    }
    
    // newNamed is like NewNamed but with a *Checker receiver.
    func (check *Checker) newNamed(obj *TypeName, underlying Type, methods []*Func) *Named {
    	typ := &Named{check: check, obj: obj, fromRHS: underlying, underlying: underlying, methods: methods}
    	if obj.typ == nil {
    		obj.typ = typ
    	}
    	// Ensure that typ is always sanity-checked.
    	if check != nil {
    		check.needsCleanup(typ)
    	}
    	return typ
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. src/go/types/named.go

    }
    
    // newNamed is like NewNamed but with a *Checker receiver.
    func (check *Checker) newNamed(obj *TypeName, underlying Type, methods []*Func) *Named {
    	typ := &Named{check: check, obj: obj, fromRHS: underlying, underlying: underlying, methods: methods}
    	if obj.typ == nil {
    		obj.typ = typ
    	}
    	// Ensure that typ is always sanity-checked.
    	if check != nil {
    		check.needsCleanup(typ)
    	}
    	return typ
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. 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)
  5. staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go

    func isOmitManagedFields(policyRule *audit.PolicyRule, policyDefault bool) bool {
    	if policyRule.OmitManagedFields == nil {
    		return policyDefault
    	}
    
    	return *policyRule.OmitManagedFields
    }
    
    // Check whether the rule matches the request attrs.
    func ruleMatches(r *audit.PolicyRule, attrs authorizer.Attributes) bool {
    	user := attrs.GetUser()
    	if len(r.Users) > 0 {
    		if user == nil || !hasString(r.Users, user.GetName()) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 22:24:14 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  6. 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)
  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/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)
  9. src/internal/types/testdata/check/cycles4.go

    	// that contains it. This requires cycle detection in
    	// identity checks for interface types.
    	x = y
    }
    
    type T3 interface {
    	m() interface{T4}
    }
    
    type T4 interface {
    	m() interface{T3}
    }
    
    func _(x T1, y T3) {
    	x = y
    }
    
    // Check that interfaces are type-checked in order of
    // (embedded interface) dependencies (was issue 7158).
    
    var x1 T5 = T7(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. 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)
Back to top