Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for invalidSep (0.21 sec)

  1. src/text/scanner/scanner.go

    	case 'x':
    		return "hexadecimal literal"
    	case 'o', '0':
    		return "octal literal"
    	case 'b':
    		return "binary literal"
    	}
    }
    
    // invalidSep returns the index of the first invalid separator in x, or -1.
    func invalidSep(x string) int {
    	x1 := ' ' // prefix char, we only care if it's 'x'
    	d := '.'  // digit, one of '_', '0' (a digit), or '.' (anything else)
    	i := 0
    
    	// a prefix counts as a digit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. src/go/scanner/scanner.go

    	case 'o', '0':
    		return "octal literal"
    	case 'b':
    		return "binary literal"
    	}
    	return "decimal literal"
    }
    
    // invalidSep returns the index of the first invalid separator in x, or -1.
    func invalidSep(x string) int {
    	x1 := ' ' // prefix char, we only care if it's 'x'
    	d := '.'  // digit, one of '_', '0' (a digit), or '.' (anything else)
    	i := 0
    
    	// a prefix counts as a digit
    	if len(x) >= 2 && x[0] == '0' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go

    	_ = x[InvalidDotDotDotOperand-80]
    	_ = x[InvalidDotDotDot-81]
    	_ = x[UncalledBuiltin-82]
    	_ = x[InvalidAppend-83]
    	_ = x[InvalidCap-84]
    	_ = x[InvalidClose-85]
    	_ = x[InvalidCopy-86]
    	_ = x[InvalidComplex-87]
    	_ = x[InvalidDelete-88]
    	_ = x[InvalidImag-89]
    	_ = x[InvalidLen-90]
    	_ = x[SwappedMakeArgs-91]
    	_ = x[InvalidMake-92]
    	_ = x[InvalidReal-93]
    	_ = x[InvalidAssert-94]
    	_ = x[ImpossibleAssert-95]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. src/internal/types/errors/code_string.go

    	_ = x[MisplacedDotDotDot-79]
    	_ = x[InvalidDotDotDot-81]
    	_ = x[UncalledBuiltin-82]
    	_ = x[InvalidAppend-83]
    	_ = x[InvalidCap-84]
    	_ = x[InvalidClose-85]
    	_ = x[InvalidCopy-86]
    	_ = x[InvalidComplex-87]
    	_ = x[InvalidDelete-88]
    	_ = x[InvalidImag-89]
    	_ = x[InvalidLen-90]
    	_ = x[SwappedMakeArgs-91]
    	_ = x[InvalidMake-92]
    	_ = x[InvalidReal-93]
    	_ = x[InvalidAssert-94]
    	_ = x[ImpossibleAssert-95]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:50:48 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. src/go/types/builtins.go

    				return false
    			}) {
    				mode = value
    			}
    		}
    
    		if mode == invalid {
    			// avoid error if underlying type is invalid
    			if isValid(under(x.typ)) {
    				code := InvalidCap
    				if id == _Len {
    					code = InvalidLen
    				}
    				check.errorf(x, code, invalidArg+"%s for built-in %s", x, bin.name)
    			}
    			return
    		}
    
    		// record the signature before changing x.typ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/builtins.go

    				return false
    			}) {
    				mode = value
    			}
    		}
    
    		if mode == invalid {
    			// avoid error if underlying type is invalid
    			if isValid(under(x.typ)) {
    				code := InvalidCap
    				if id == _Len {
    					code = InvalidLen
    				}
    				check.errorf(x, code, invalidArg+"%s for built-in %s", x, bin.name)
    			}
    			return
    		}
    
    		// record the signature before changing x.typ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. src/go/types/index.go

    	case nil:
    		check.errorf(x, NonSliceableOperand, invalidOp+"cannot slice %s: %s has no core type", x, x.typ)
    		x.mode = invalid
    		return
    
    	case *Basic:
    		if isString(u) {
    			if e.Slice3 {
    				at := e.Max
    				if at == nil {
    					at = e // e.Index[2] should be present but be careful
    				}
    				check.error(at, InvalidSliceExpr, invalidOp+"3-index slice of string")
    				x.mode = invalid
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    			check.errorf(x, UnaddressableOperand, invalidOp+"cannot take address of %s", x)
    			x.mode = invalid
    			return
    		}
    		x.mode = value
    		x.typ = &Pointer{base: x.typ}
    		return
    
    	case token.ARROW:
    		u := coreType(x.typ)
    		if u == nil {
    			check.errorf(x, InvalidReceive, invalidOp+"cannot receive from %s (no core type)", x)
    			x.mode = invalid
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. cmd/generic-handlers.go

    				tc.ResponseRecorder.LogErrBody = true
    			}
    
    			defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r))
    			invalidReq := errorCodes.ToAPIErr(ErrInvalidRequest)
    			invalidReq.Description = fmt.Sprintf("%s (%s)", invalidReq.Description, err)
    			writeErrorResponse(r.Context(), w, invalidReq, r.URL)
    			atomic.AddUint64(&globalHTTPStats.rejectedRequestsInvalid, 1)
    			return
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 01:01:15 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    	expectInvalidKey("Create", store.Create(ctx, invalidKey, nil, nil, 0))
    	expectInvalidKey("Delete", store.Delete(ctx, invalidKey, nil, nil, nil, nil))
    	_, watchErr := store.Watch(ctx, invalidKey, storage.ListOptions{})
    	expectInvalidKey("Watch", watchErr)
    	expectInvalidKey("Get", store.Get(ctx, invalidKey, storage.GetOptions{}, nil))
    	expectInvalidKey("GetList", store.GetList(ctx, invalidKey, storage.ListOptions{}, nil))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
Back to top