Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for IsBool (0.41 sec)

  1. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SinceAndIncubatingRulesKotlinTest.kt

        private
        val publicKotlinMembers = """
    
            fun foo() {}
    
            val bar: String = "bar"
    
            val bool: Boolean = true
    
            val isBool: Boolean = true
    
            var bazar = "bazar"
    
            var bazool: Boolean = true
    
            var isFool: Boolean = true
    
            fun String.fooExt() {}
    
            fun Int.fooExt() {}
    
            val String.barExt: String
                get() = "bar"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jul 11 06:57:51 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  2. test/named.go

    		str   String = "hello"
    	)
    
    	asArray(a)
    	isArray(a)
    	asArray(*&a)
    	isArray(*&a)
    	asArray(Array{})
    	isArray(Array{})
    
    	asBool(b)
    	isBool(b)
    	asBool(!b)
    	isBool(!b)
    	asBool(true)
    	asBool(*&b)
    	isBool(*&b)
    	asBool(Bool(true))
    	isBool(Bool(true))
    
    	asChan(c)
    	isChan(c)
    	asChan(make(Chan))
    	isChan(make(Chan))
    	asChan(*&c)
    	isChan(*&c)
    	asChan(Chan(nil))
    	isChan(Chan(nil))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. test/named1.go

    type Slice []byte
    
    var slice Slice
    
    func asBool(Bool)     {}
    func asString(String) {}
    
    type String string
    
    func main() {
    	var (
    		b    Bool = true
    		i, j int
    		c    = make(chan int)
    		m    = make(Map)
    	)
    
    	asBool(b)
    	asBool(!b)
    	asBool(true)
    	asBool(*&b)
    	asBool(Bool(true))
    	asBool(1 != 2) // ok now
    	asBool(i < j)  // ok now
    
    	_, b = m[2] // ok now
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 984 bytes
    - Viewed (0)
  9. 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)
  10. src/log/slog/value_access_benchmark_test.go

    					s = v
    				} else if v, ok := kv.AsInt64(); ok {
    					ii = v
    				} else if v, ok := kv.AsUint64(); ok {
    					u = v
    				} else if v, ok := kv.AsFloat64(); ok {
    					f = v
    				} else if v, ok := kv.AsBool(); ok {
    					bb = v
    				} else if v, ok := kv.AsDuration(); ok {
    					d = v
    				} else if v, ok := kv.AsAny(); ok {
    					a = v
    				} else {
    					panic("bad kind")
    				}
    			}
    		}
    		_ = ii
    		_ = s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 20:55:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top