Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,907 for IsSwitch (0.13 sec)

  1. pkg/config/schema/codegen/templates/crdclient.go.tmpl

    {{- range .Packages}}
    	{{.ImportName}} "{{.PackageName}}"
    {{- end}}
    )
    
    func create(c kube.Client, cfg config.Config, objMeta metav1.ObjectMeta) (metav1.Object, error) {
    	switch cfg.GroupVersionKind {
    {{- range .Entries }}
    	{{- if and (not .Resource.Synthetic) (not .Resource.Builtin) }}
    	case gvk.{{.Resource.Identifier}}:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. src/encoding/json/decode.go

    	data, i := d.data, d.off
    Switch:
    	switch data[i-1] {
    	case '"': // string
    		for ; i < len(data); i++ {
    			switch data[i] {
    			case '\\':
    				i++ // escaped char
    			case '"':
    				i++ // tokenize the closing quote too
    				break Switch
    			}
    		}
    	case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-': // number
    		for ; i < len(data); i++ {
    			switch data[i] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  3. src/go/types/typeterm.go

    	typ   Type
    }
    
    func (x *term) String() string {
    	switch {
    	case x == nil:
    		return "∅"
    	case x.typ == nil:
    		return "𝓤"
    	case x.tilde:
    		return "~" + x.typ.String()
    	default:
    		return x.typ.String()
    	}
    }
    
    // equal reports whether x and y represent the same type set.
    func (x *term) equal(y *term) bool {
    	// easy cases
    	switch {
    	case x == nil || y == nil:
    		return x == y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/stmt.go

    		case syntax.Fallthrough:
    			if ctxt&fallthroughOk == 0 {
    				var msg string
    				switch {
    				case ctxt&finalSwitchCase != 0:
    					msg = "cannot fallthrough final case in switch"
    				case ctxt&inTypeSwitch != 0:
    					msg = "cannot fallthrough in type switch"
    				default:
    					msg = "fallthrough statement out of place"
    				}
    				check.error(s, MisplacedFallthrough, msg)
    			}
    		case syntax.Goto:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/labels.go

    var x int
    
    func f0() {
    L1 /* ERROR "label L1 declared and not used" */ :
    	for {
    	}
    L2 /* ERROR "label L2 declared and not used" */ :
    	select {
    	}
    L3 /* ERROR "label L3 declared and not used" */ :
    	switch {
    	}
    L4 /* ERROR "label L4 declared and not used" */ :
    	if true {
    	}
    L5 /* ERROR "label L5 declared and not used" */ :
    	f0()
    L6:
    	f0()
    L6 /* ERROR "label L6 already declared" */ :
    	f0()
    	if x == 20 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/arch/ppc64.go

    )
    
    func jumpPPC64(word string) bool {
    	switch word {
    	case "BC", "BCL", "BEQ", "BGE", "BGT", "BL", "BLE", "BLT", "BNE", "BR", "BVC", "BVS", "BDNZ", "BDZ", "CALL", "JMP":
    		return true
    	}
    	return false
    }
    
    // IsPPC64CMP reports whether the op (as defined by an ppc64.A* constant) is
    // one of the CMP instructions that require special handling.
    func IsPPC64CMP(op obj.As) bool {
    	switch op {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 21:53:50 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/net/file_unix.go

    	if err != nil {
    		poll.CloseFunc(s)
    		return nil, os.NewSyscallError("getsockopt", err)
    	}
    	lsa, _ := syscall.Getsockname(s)
    	rsa, _ := syscall.Getpeername(s)
    	switch lsa.(type) {
    	case *syscall.SockaddrInet4:
    		family = syscall.AF_INET
    	case *syscall.SockaddrInet6:
    		family = syscall.AF_INET6
    	case *syscall.SockaddrUnix:
    		family = syscall.AF_UNIX
    	default:
    		poll.CloseFunc(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java

            this.state = state;
            condition.signalAll();
        }
    
        DaemonStopState awaitStop() {
            lock.lock();
            try {
                while (true) {
                    try {
                        switch (state) {
                            case Idle:
                            case Busy:
                                LOGGER.debug("daemon is running. Sleeping until state changes.");
                                condition.await();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. test/fixedbugs/issue23664.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Verify error messages for incorrect if/switch headers.
    
    package p
    
    func f() {
    	if f() true { // ERROR "unexpected name true, expected {"
    	}
    
    	switch f() true { // ERROR "unexpected name true, expected {"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 387 bytes
    - Viewed (0)
  10. src/database/sql/convert.go

    		// be used in the retry.
    		checker := defaultCheckNamedValue
    		nextCC := false
    		switch {
    		case nvc != nil:
    			nextCC = cci != nil
    			checker = nvc.CheckNamedValue
    		case cci != nil:
    			checker = cc.CheckNamedValue
    		}
    
    	nextCheck:
    		err = checker(nv)
    		switch err {
    		case nil:
    			n++
    			continue
    		case driver.ErrRemoveArgument:
    			nvargs = nvargs[:len(nvargs)-1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top