Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for isNullable (0.12 sec)

  1. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      private static final ImmutableSet<String> NULLABLE_ANNOTATION_SIMPLE_NAMES =
          ImmutableSet.of("CheckForNull", "Nullable", "NullableDecl", "NullableType");
    
      static boolean isNullable(Invokable<?, ?> invokable) {
        return NULLNESS_ANNOTATION_READER.isNullable(invokable);
      }
    
      static boolean isNullable(Parameter param) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      private static final ImmutableSet<String> NULLABLE_ANNOTATION_SIMPLE_NAMES =
          ImmutableSet.of("CheckForNull", "Nullable", "NullableDecl", "NullableType");
    
      static boolean isNullable(Invokable<?, ?> invokable) {
        return NULLNESS_ANNOTATION_READER.isNullable(invokable);
      }
    
      static boolean isNullable(Parameter param) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/types/KtFe10IntersectionType.kt

    ) : KaIntersectionType(), KaFe10Type {
        override val conjuncts: List<KaType> by cached {
            val result = ArrayList<KaType>(supertypes.size)
            val isNullable = fe10Type.isMarkedNullable
            for (supertype in supertypes) {
                val mappedSupertype = if (isNullable) supertype.makeNullable() else supertype
                result += mappedSupertype.toKtType(analysisContext)
            }
            return@cached result
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/types/KtType.kt

        }
    }
    
    public typealias KtType = KaType
    
    public enum class KaTypeNullability(public val isNullable: Boolean) {
        NULLABLE(true),
        NON_NULLABLE(false),
        UNKNOWN(false);
    
        public companion object {
            public fun create(isNullable: Boolean): KaTypeNullability = if (isNullable) NULLABLE else NON_NULLABLE
        }
    }
    
    public typealias KtTypeNullability = KaTypeNullability
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Jun 10 20:18:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

            val type = ConeClassLikeTypeImpl(
                firClass.symbol.toLookupTag(),
                firClass.typeParameters.map { ConeTypeParameterTypeImpl(it.symbol.toLookupTag(), isNullable = false) }.toTypedArray(),
                isNullable = false
            )
    
            return type.asKtType()
        }
    
        override fun commonSuperType(types: Collection<KaType>): KaType? {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 10:25:23 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeCreator.kt

            val typeContext = rootModuleSession.typeContext
            val coneType = typeContext.createSimpleType(
                lookupTag,
                builder.arguments.map { it.coneTypeProjection },
                builder.nullability.isNullable
            ) as ConeClassLikeType
    
            return coneType.asKtType()
        }
    
        override fun buildTypeParameterType(builder: KaTypeParameterTypeBuilder): KaTypeParameterType {
            val coneType = when (builder) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt

        }
    
        private fun areTypesCompatible(a: KotlinType, b: KotlinType): Boolean {
            if (a.isNothing() || b.isNothing() || TypeUtils.equalTypes(a, b) || (a.isNullable() && b.isNullable())) {
                return true
            }
    
            val aConstructor = a.constructor
            val bConstructor = b.constructor
    
            if (aConstructor is IntersectionTypeConstructor) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Throwables.throwIfUnchecked;
    import static com.google.common.testing.NullPointerTester.isNullable;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.base.Joiner;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Throwables.throwIfUnchecked;
    import static com.google.common.testing.NullPointerTester.isNullable;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.base.Joiner;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirPsiTypeProvider.kt

            if (firClassNode != null) {
                firClassNode.resolvedSuperTypes.singleOrNull()?.let { return it }
            }
    
            return if (type.nullability.isNullable) session.builtinTypes.nullableAnyType.type
            else session.builtinTypes.anyType.type
        }
    
        private fun ConeKotlinType.hasRecursiveTypeArgument(
            visited: MutableSet<ConeKotlinType> = mutableSetOf(),
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 20:26:34 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top