Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 121 for checkers (0.74 sec)

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

    // For debugging only.
    type actionDesc struct {
    	pos    poser
    	format string
    	args   []interface{}
    }
    
    // A Checker maintains the state of the type checker.
    // It must be created with NewChecker.
    type Checker struct {
    	// package information
    	// (initialized by NewChecker, valid for the life-time of checker)
    	conf *Config
    	ctxt *Context // context for de-duplicating instances
    	pkg  *Package
    	*Info
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  2. src/go/types/typexpr.go

    		check.errorf(e, NotAType, "%s is not a type", obj.Name())
    		// avoid "declared but not used" errors
    		// (don't use Checker.use - we don't want to evaluate too much)
    		if v, _ := obj.(*Var); v != nil && v.pkg == check.pkg /* see Checker.use1 */ {
    			v.used = true
    		}
    		return
    	}
    
    	// Type-check the object.
    	// Only call Checker.objDecl if the object doesn't have a type yet
    	// (in which case we must actually determine it) or the object is a
    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/go/types/decl.go

    		check.trace(names[0].Pos(), "type params = %v", tparams[len(tparams)-len(names):])
    	}
    
    	return tparams
    }
    
    func (check *Checker) collectMethods(obj *TypeName) {
    	// get associated methods
    	// (Checker.collectObjects only collects methods with non-blank names;
    	// Checker.resolveBaseTypeName ensures that obj is not an alias name
    	// if it has attached methods.)
    	methods := check.methods[obj]
    	if methods == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/typexpr.go

    		check.errorf(e, NotAType, "%s is not a type", obj.Name())
    		// avoid "declared but not used" errors
    		// (don't use Checker.use - we don't want to evaluate too much)
    		if v, _ := obj.(*Var); v != nil && v.pkg == check.pkg /* see Checker.use1 */ {
    			v.used = true
    		}
    		return
    	}
    
    	// Type-check the object.
    	// Only call Checker.objDecl if the object doesn't have a type yet
    	// (in which case we must actually determine it) or the object is a
    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/cmd/compile/internal/types2/decl.go

    	check.declare(check.scope, name, tname, scopePos)
    	return tpar
    }
    
    func (check *Checker) collectMethods(obj *TypeName) {
    	// get associated methods
    	// (Checker.collectObjects only collects methods with non-blank names;
    	// Checker.resolveBaseTypeName ensures that obj is not an alias name
    	// if it has attached methods.)
    	methods := check.methods[obj]
    	if methods == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  6. cmd/sftp-server.go

    	// username in authentication request matches to identities in certificate
    	// and that certificate type is correct.
    	checker := ssh.CertChecker{}
    	checker.IsUserAuthority = func(k ssh.PublicKey) bool {
    		return subtle.ConstantTimeCompare(caPublicKey.Marshal(), k.Marshal()) == 1
    	}
    
    	_, err = checker.Authenticate(c, clientKey)
    	return
    }
    
    type sftpLogger struct{}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. 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)
  8. cmd/kubeadm/app/preflight/checks_test.go

    	var tokenTest = []struct {
    		p        []Checker
    		expected bool
    		output   string
    	}{
    		{[]Checker{}, true, ""},
    		{[]Checker{preflightCheckTest{"warning"}}, true, "\t[WARNING preflightCheckTest]: warning\n"}, // should just print warning
    		{[]Checker{preflightCheckTest{"error"}}, false, ""},
    		{[]Checker{preflightCheckTest{"test"}}, false, ""},
    		{[]Checker{DirAvailableCheck{Path: "/does/not/exist"}}, true, ""},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  9. 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)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go

    			}
    			if field.Type == nil {
    				return nil
    			}
    			currentNode = field.Type
    		}
    	}
    	return &checker.SizeEstimate{Min: 0, Max: uint64(currentNode.MaxElements)}
    }
    
    func (c *sizeEstimator) EstimateCallCost(function, overloadID string, target *checker.AstNode, args []checker.AstNode) *checker.CallEstimate {
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top