Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for IsBoolean (0.13 sec)

  1. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

          assertTrue(desc, isGuarded(method));
          assertTrue(desc, isBoolean(method));
        } else if (isTryEnter(method)) {
          assertFalse(desc, isTimed(method));
          assertTrue(desc, isBoolean(method));
          assertFalse(desc, isInterruptible(method));
        } else if (isWaitFor(method)) {
          assertTrue(desc, isGuarded(method));
          assertEquals(desc, isTimed(method), isBoolean(method));
        } else { // any other enterXxx method
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

          assertTrue(desc, isGuarded(method));
          assertTrue(desc, isBoolean(method));
        } else if (isTryEnter(method)) {
          assertFalse(desc, isTimed(method));
          assertTrue(desc, isBoolean(method));
          assertFalse(desc, isInterruptible(method));
        } else if (isWaitFor(method)) {
          assertTrue(desc, isGuarded(method));
          assertEquals(desc, isTimed(method), isBoolean(method));
        } else { // any other enterXxx method
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtTypeInfoProvider.kt

        public val KaType.isChar: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.CHAR) }
        public val KaType.isBoolean: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.BOOLEAN) }
        public val KaType.isString: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.STRING) }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/predicates.go

    // The isX predicates below report whether t is an X.
    // If t is a type parameter the result is false; i.e.,
    // these predicates don't look inside a type parameter.
    
    func isBoolean(t Type) bool        { return isBasic(t, IsBoolean) }
    func isInteger(t Type) bool        { return isBasic(t, IsInteger) }
    func isUnsigned(t Type) bool       { return isBasic(t, IsUnsigned) }
    func isFloat(t Type) bool          { return isBasic(t, IsFloat) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. src/go/types/predicates.go

    // The isX predicates below report whether t is an X.
    // If t is a type parameter the result is false; i.e.,
    // these predicates don't look inside a type parameter.
    
    func isBoolean(t Type) bool        { return isBasic(t, IsBoolean) }
    func isInteger(t Type) bool        { return isBasic(t, IsInteger) }
    func isUnsigned(t Type) bool       { return isBasic(t, IsUnsigned) }
    func isFloat(t Type) bool          { return isBasic(t, IsFloat) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

            val constantValue = when {
                value == null -> KaConstantValue.KaNullConstantValue(expression)
                type == null -> KaConstantValueFactory.createConstantValue(value, psi as? KtElement)
                type.isBoolean -> KaConstantValue.KaBooleanConstantValue(value as Boolean, expression)
                type.isChar -> KaConstantValue.KaCharConstantValue((value as? Char) ?: (value as Number).toInt().toChar(), expression)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/check.go

    			if len(b.Succs) != 2 {
    				f.Fatalf("if block %s len(Succs)==%d, want 2", b, len(b.Succs))
    			}
    			if b.NumControls() != 1 {
    				f.Fatalf("if block %s has no control value", b)
    			}
    			if !b.Controls[0].Type.IsBoolean() {
    				f.Fatalf("if block %s has non-bool control value %s", b, b.Controls[0].LongString())
    			}
    		case BlockDefer:
    			if len(b.Succs) != 2 {
    				f.Fatalf("defer block %s len(Succs)==%d, want 2", b, len(b.Succs))
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/typecheck.go

    		// can't be converted to int (see issue #41500).
    		if !n.X.Type().IsBoolean() {
    			base.Errorf("invalid operation: %v (operator %v not defined on %s)", n, n.Op(), typekind(n.X.Type()))
    			n.SetType(nil)
    			return n
    		}
    		if !n.Y.Type().IsBoolean() {
    			base.Errorf("invalid operation: %v (operator %v not defined on %s)", n, n.Op(), typekind(n.Y.Type()))
    			n.SetType(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		under = n.Underlying()
    	}
    	switch under := under.(type) {
    	case *types.Basic:
    		switch {
    		case under.Info()&types.IsNumeric != 0:
    			return &ast.BasicLit{Kind: token.INT, Value: "0"}
    		case under.Info()&types.IsBoolean != 0:
    			return &ast.Ident{Name: "false"}
    		case under.Info()&types.IsString != 0:
    			return &ast.BasicLit{Kind: token.STRING, Value: `""`}
    		default:
    			panic(fmt.Sprintf("unknown basic type %v", under))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/iimport.go

    	if r.p.exportVersion >= iexportVersionGo1_18 {
    		// TODO: add support for using the kind
    		_ = constant.Kind(r.int64())
    	}
    
    	switch b := typ.Underlying().(*types.Basic); b.Info() & types.IsConstType {
    	case types.IsBoolean:
    		val = constant.MakeBool(r.bool())
    
    	case types.IsString:
    		val = constant.MakeString(r.string())
    
    	case types.IsInteger:
    		var x big.Int
    		r.mpint(&x, b)
    		val = constant.Make(&x)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top