Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for type$val (0.32 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/SubtypingTest.kt

        @Test
        fun `type-checks assignment of subtype to superclass type`() {
            val result = schema.resolve(
                """
                superClassProp = sub()
                """.trimIndent()
            )
    
            assertEquals(1, result.assignments.size)
        }
    
        @Test
        fun `type-checks assignment of subtype to super interface type`() {
            val result = schema.resolve(
                """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10JvmTypeMapper.kt

            get() = analysisSession.token
    
        private val typeMapper by lazy { KaFe10JvmTypeMapperContext(analysisContext.resolveSession) }
    
        override fun mapTypeToJvmType(type: KaType, mode: TypeMappingMode): Type {
            val kotlinType = (type as KaFe10Type).fe10Type
            return typeMapper.mapType(kotlinType, mode)
        }
    
        override fun isPrimitiveBacked(type: KaType): Boolean {
            val kotlinType = (type as KaFe10Type).fe10Type
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/OrdinalNodeCodec.kt

            writeEnum(value.type)
            writeInt(value.ordinalGroup.ordinal)
        }
    
        override suspend fun ReadContext.decode(): OrdinalNode {
            val ordinalType = readEnum<OrdinalNode.Type>()
            val ordinal = readInt()
            return ordinalGroups.group(ordinal).locationsNode(ordinalType)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/types/AbstractAnalysisApiSubstitutorsTest.kt

                val symbol = declaration.getSymbol() as KaCallableSymbol
                val type = symbol.returnType
                val substituted = substitutor.substitute(type)
                val substitutedOrNull = substitutor.substituteOrNull(type)
    
                prettyPrint {
                    appendLine("PSI type: ${declaration.typeReference?.text}")
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. analysis/analysis-api-standalone/tests/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/session/builder/AbstractStandaloneSessionBuilderAgainstStdlibTest.kt

            val ktCallExpression = ktFile.findDescendantOfType<KtCallExpression>()!!
            ktCallExpression.assertIsCallOf(CallableId(StandardNames.COLLECTIONS_PACKAGE_FQ_NAME, Name.identifier("listOf")))
    
            // builtin type
            val typeReference = ktFile.findDescendantOfType<KtNamedFunction>()!!.typeReference!!
            typeReference.assertIsReferenceTo(StandardClassIds.Float)
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. .teamcity/src/main/kotlin/configurations/PerformanceTest.kt

            this.name = "$description${if (performanceTestBuildSpec.withoutDependencies) " (without dependencies)" else ""}"
            val type = performanceTestBuildSpec.type
            val os = performanceTestBuildSpec.os
            val arch = performanceTestBuildSpec.arch
            val buildTypeThis = this
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 03:39:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/DataSchemaBuilder.kt

                    }
                }
                types.forEach(::visit)
            }
    
            return PreIndex().apply {
                allTypesToVisit.forEach { type ->
                    addType(type)
                    val properties = propertyExtractor.extractProperties(type)
                    properties.forEach {
                        it.claimedFunctions.forEach { claimFunction(type, it) }
                        addProperty(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

      auto encoding = mlir::dyn_cast_or_null<mlir::mhlo::TypeExtensionsAttr>(
          type.getEncoding());
      return (encoding && !encoding.getBounds().empty());
    }
    
    bool HasStaticShapeOrBounded(Value val) {
      auto type = val.getType();
      if (mlir::isa<UnrankedTensorType>(type)) {
        return false;
      }
      if (mlir::isa<RankedTensorType>(type)) {
        auto ranked_tensor = mlir::dyn_cast<RankedTensorType>(type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/BindingsBackedCodec.kt

        fun bind(type: Class<*>, codec: Codec<*>) {
            require(bindings.all { it.encodingForType(type) == null }) {
                "There's already an encoding for type '$type'"
            }
            val codecForAny = codec.uncheckedCast<Codec<Any>>()
            val encodingProducer = producerForSubtypesOf(type, codecForAny)
            bind(encodingProducer, codecForAny)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. src/go/types/conversions.go

    	"unicode"
    )
    
    // conversion type-checks the conversion T(x).
    // The result is in x.
    func (check *Checker) conversion(x *operand, T Type) {
    	constArg := x.mode == constant_
    
    	constConvertibleTo := func(T Type, val *constant.Value) bool {
    		switch t, _ := under(T).(*Basic); {
    		case t == nil:
    			// nothing to do
    		case representableConst(x.val, check, t, val):
    			return true
    		case isInteger(x.typ) && isString(t):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top