- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for IsBool (0.31 sec)
-
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SinceAndIncubatingRulesKotlinTest.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jul 11 06:57:51 UTC 2023 - 12.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/annotations/impl/DefaultTypeAnnotationMetadataStoreTest.groovy
@Ignored boolean isBool() { true } } def "can ignore 'get' getter in favor of 'is' getter"() { expect: assertProperties TypeWithIgnoredGetGetterBooleanProperty, [ bool: [(TYPE): Small], ] store.getTypeAnnotationMetadata(TypeWithIgnoredGetGetterBooleanProperty).propertiesAnnotationMetadata[0].getter.name == "isBool" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Feb 11 15:31:37 UTC 2024 - 25.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go
switch f.Name { case "debug", "cpuprofile", "memprofile", "trace", "fix": return } b, ok := f.Value.(interface{ IsBoolFlag() bool }) isBool := ok && b.IsBoolFlag() flags = append(flags, jsonFlag{f.Name, isBool, f.Usage}) }) data, err := json.MarshalIndent(flags, "", "\t") if err != nil { log.Fatal(err) } os.Stdout.Write(data) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/convert.go
// If it's a pointer, it is its own representation. if types.IsDirectIface(fromType) { return n } isInteger := fromType.IsInteger() isBool := fromType.IsBoolean() if sc := fromType.SoleComponent(); sc != nil { isInteger = sc.IsInteger() isBool = sc.IsBoolean() } // Try a bunch of cases to avoid an allocation. var value ir.Node switch { case fromType.Size() == 0:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 17:28:22 UTC 2023 - 18.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.cc
std::vector<mlir::Attribute> mlir_vector; for (int i = 0; i < flatbuffer_vector.size(); ++i) { auto value = flatbuffer_vector[i]; if (value.IsBool()) { mlir_vector.push_back(BuildVhloBooleanV1Attr(value.AsBool(), builder)); } else if (value.IsString()) { mlir_vector.push_back( BuildVhloStringV1Attr(value.AsString().str(), builder)); } else if (value.IsInt()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 38K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorTest.java
assertThat(bean.writeOnly, equalTo(12)); call("{ it.primitive 12}", bean); assertThat(bean.getPrimitive(), equalTo(12)); call("{ it.bool true}", bean); assertThat(bean.isBool(), equalTo(true)); call("{ it.overloaded 'value'}", bean); assertThat(bean.getOverloaded(), equalTo("chars = value")); call("{ it.overloaded 12}", bean);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 74.6K bytes - Viewed (0) -
doc/go1.17_spec.html
} else if i, isFunc := v.(func(int) float64); isFunc { printFunction(i) // type of i is func(int) float64 } else { _, isBool := v.(bool) _, isString := v.(string) if isBool || isString { i := v // type of i is type of x (interface{}) printString("type is bool or string") } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0) -
src/encoding/gob/type_test.go
if sint != newsint { t.Errorf("second registration of []int creates new type") } var b []bool sbool := getTypeUnlocked("", reflect.TypeOf(b)) if sbool == sint { t.Errorf("registration of []bool creates same type as []int") } str := sbool.string() expected := "[]bool" if str != expected { t.Errorf("slice printed as %q; expected %q", str, expected) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 14:26:13 UTC 2023 - 6.1K bytes - Viewed (0) -
doc/go_spec.html
} else if i, isFunc := v.(func(int) float64); isFunc { printFunction(i) // type of i is func(int) float64 } else { _, isBool := v.(bool) _, isString := v.(string) if isBool || isString { i := v // type of i is type of x (interface{}) printString("type is bool or string") } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc
llvm::SmallVector<bool> vec; const auto& vector = value.AsTypedVector(); for (size_t i = 0; i < vector.size(); i++) { vec.push_back(vector[i].AsBool()); } attrs.push_back( builder->getNamedAttr(key, builder->getDenseBoolArrayAttr(vec))); break; } case flexbuffers::FBT_VECTOR_INT: {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 06:08:43 UTC 2024 - 10.8K bytes - Viewed (0)