Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for invalidIndex (0.33 sec)

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

    	var x operand
    	check.expr(nil, &x, index)
    	if !check.isValidIndex(&x, InvalidIndex, "index", false) {
    		return
    	}
    
    	if x.mode != constant_ {
    		return x.typ, -1
    	}
    
    	if x.val.Kind() == constant.Unknown {
    		return
    	}
    
    	v, ok := constant.Int64Val(x.val)
    	assert(ok)
    	if max >= 0 && v >= max {
    		check.errorf(&x, InvalidIndex, invalidArg+"index %s out of bounds [0:%d]", x.val.String(), max)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. src/go/types/index.go

    	var x operand
    	check.expr(nil, &x, index)
    	if !check.isValidIndex(&x, InvalidIndex, "index", false) {
    		return
    	}
    
    	if x.mode != constant_ {
    		return x.typ, -1
    	}
    
    	if x.val.Kind() == constant.Unknown {
    		return
    	}
    
    	v, ok := constant.Int64Val(x.val)
    	assert(ok)
    	if max >= 0 && v >= max {
    		check.errorf(&x, InvalidIndex, invalidArg+"index %s out of bounds [0:%d]", x.val.String(), max)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go

    	_ = x[UndefinedOp-45]
    	_ = x[MismatchedTypes-46]
    	_ = x[DivByZero-47]
    	_ = x[NonNumericIncDec-48]
    	_ = x[UnaddressableOperand-49]
    	_ = x[InvalidIndirection-50]
    	_ = x[NonIndexableOperand-51]
    	_ = x[InvalidIndex-52]
    	_ = x[SwappedSliceIndices-53]
    	_ = x[NonSliceableOperand-54]
    	_ = x[InvalidSliceExpr-55]
    	_ = x[InvalidShiftCount-56]
    	_ = x[InvalidShiftOperand-57]
    	_ = x[InvalidReceive-58]
    	_ = x[InvalidSend-59]
    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[UndefinedOp-45]
    	_ = x[MismatchedTypes-46]
    	_ = x[DivByZero-47]
    	_ = x[NonNumericIncDec-48]
    	_ = x[UnaddressableOperand-49]
    	_ = x[InvalidIndirection-50]
    	_ = x[NonIndexableOperand-51]
    	_ = x[InvalidIndex-52]
    	_ = x[SwappedSliceIndices-53]
    	_ = x[NonSliceableOperand-54]
    	_ = x[InvalidSliceExpr-55]
    	_ = x[InvalidShiftCount-56]
    	_ = x[InvalidShiftOperand-57]
    	_ = x[InvalidReceive-58]
    	_ = x[InvalidSend-59]
    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/encoding/base32/base32.go

    		"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" +
    		"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" +
    		"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
    	invalidIndex = '\xff'
    )
    
    // NewEncoding returns a new padded Encoding defined by the given alphabet,
    // which must be a 32-byte string that contains unique byte values and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  6. src/encoding/base64/base64.go

    		"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" +
    		"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" +
    		"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
    	invalidIndex = '\xff'
    )
    
    // NewEncoding returns a new padded Encoding defined by the given alphabet,
    // which must be a 64-byte string that contains unique byte values and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go

    	NonIndexableOperand
    
    	// InvalidIndex occurs when an index argument is not of integer type,
    	// negative, or out-of-bounds.
    	//
    	// Example:
    	//  var s = [...]int{1,2,3}
    	//  var x = s[5]
    	//
    	// Example:
    	//  var s = []int{1,2,3}
    	//  var _ = s[-1]
    	//
    	// Example:
    	//  var s = []int{1,2,3}
    	//  var i string
    	//  var _ = s[i]
    	InvalidIndex
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 34K bytes
    - Viewed (0)
  8. src/internal/types/errors/codes.go

    	NonIndexableOperand
    
    	// InvalidIndex occurs when an index argument is not of integer type,
    	// negative, or out-of-bounds.
    	//
    	// Example:
    	//  var s = [...]int{1,2,3}
    	//  var x = s[5]
    	//
    	// Example:
    	//  var s = []int{1,2,3}
    	//  var _ = s[-1]
    	//
    	// Example:
    	//  var s = []int{1,2,3}
    	//  var i string
    	//  var _ = s[i]
    	InvalidIndex
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:50:48 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation_test.go

    }
    func invalidtypecode(path ...string) validationMatch {
    	return validationMatch{path: field.NewPath(path[0], path[1:]...), errorType: field.ErrorTypeTypeInvalid}
    }
    func invalidIndex(index int, path ...string) validationMatch {
    	return validationMatch{path: field.NewPath(path[0], path[1:]...).Index(index), errorType: field.ErrorTypeInvalid}
    }
    func unsupported(path ...string) validationMatch {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 349.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/LightTreeUtil.kt

                        }
    
                    fun String.isValidIndex(index: Int) = index in indices
    
                    check(text.isValidIndex(offset))
    
                    val realStartIndex = offset + offsetRelativeIndexRange.first
                    check(text.isValidIndex(realStartIndex))
    
                    val realEndIndex = offset + offsetRelativeIndexRange.last
                    check(text.isValidIndex(realEndIndex))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top