Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for invalidSep (0.15 sec)

  1. src/cmd/compile/internal/syntax/scanner.go

    		return "binary"
    	case 8:
    		return "octal"
    	case 10:
    		return "decimal"
    	case 16:
    		return "hexadecimal"
    	}
    	panic("invalid base")
    }
    
    // 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 Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/webhook_server.go

    	switch r.URL.Path {
    	case "/internalErr":
    		http.Error(w, "webhook internal server error", http.StatusInternalServerError)
    		return
    	case "/invalidReq":
    		w.WriteHeader(http.StatusSwitchingProtocols)
    		w.Write([]byte("webhook invalid request"))
    		return
    	case "/invalidResp":
    		w.Header().Set("Content-Type", "application/json")
    		w.Write([]byte("webhook invalid response"))
    	case "/disallow":
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 15 11:11:25 UTC 2021
    - 6.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/apiserver/pkg/admission/attributes_test.go

    		"no key name":           "foo.admission.k8s.io",
    		"empty key":             "",
    	}
    	for name, invalidKey := range testCases {
    		err := attr.AddAnnotation(invalidKey, "value-foo")
    		assert.Error(t, err)
    		annotations = attr.getAnnotations(auditinternal.LevelMetadata)
    		assert.Equal(t, annotations[invalidKey], "", name+": invalid pluginName is not allowed ")
    	}
    
    	// test all saved annotations
    	assert.Equal(
    		t,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 19:44:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. 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)
Back to top