Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for type (0.34 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10PsiTypeProvider.kt

                KtTypeMappingMode.RETURN_TYPE_BOXED -> TypeMappingMode.RETURN_TYPE_BOXED
                KtTypeMappingMode.RETURN_TYPE ->
                    typeMapper.typeContext.getOptimalModeForReturnType(type.fe10Type, isAnnotationMethod)
                KtTypeMappingMode.VALUE_PARAMETER ->
                    typeMapper.typeContext.getOptimalModeForValueParameter(type.fe10Type)
            }.let { typeMappingMode ->
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Mar 28 16:10:07 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirPsiTypeProvider.kt

                KtTypeMappingMode.SUPER_TYPE -> TypeMappingMode.SUPER_TYPE
                KtTypeMappingMode.SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS -> TypeMappingMode.SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS
                KtTypeMappingMode.RETURN_TYPE_BOXED -> TypeMappingMode.RETURN_TYPE_BOXED
                KtTypeMappingMode.RETURN_TYPE -> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 12 13:29:57 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

                type.isInt -> KtConstantValue.KtIntConstantValue((value as Number).toInt(), expression)
                type.isUInt -> KtConstantValue.KtUnsignedIntConstantValue((value as Number).toInt().toUInt(), expression)
                type.isLong -> KtConstantValue.KtLongConstantValue((value as Number).toLong(), expression)
                type.isULong -> KtConstantValue.KtUnsignedLongConstantValue((value as Number).toLong().toULong(), expression)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SmartCastProvider.kt

            return when {
                stableSmartCasts != null -> {
                    val type = stableSmartCasts.getKtType() ?: return null
                    KtSmartCastInfo(type, true, token)
                }
                unstableSmartCasts != null -> {
                    val type = unstableSmartCasts.getKtType() ?: return null
                    KtSmartCastInfo(type, false, token)
                }
                else -> null
            }
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Aug 15 21:46:11 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

            else -> null
        }
    
        /**
         * It only makes sense to provide type for the references which reference some actual properties/variables.
         *
         * In cases when the name reference references a function (a REAL function, not a functional type variable), it does not
         * make sense to provide any type for it.
         *
         * ---
         *
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Mar 26 18:13:17 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirImportOptimizer.kt

                        // type ref with delegated type ref with such source kind is NOT directly present in the source, so we ignore it
                        !isArrayFromVararg
                    }
    
                    // type ref with such source kind is explicitly present in the source, so we want to see it
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 24.2K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

            for ((parameter, type) in typeArguments) {
                val ktParameter = typeParameters.getOrNull(parameter.index) ?: return emptyMap()
    
                // i.e. we were not able to infer some types
                if (type.contains { it: UnwrappedType -> it.constructor is TypeVariableTypeConstructor }) return emptyMap()
    
                result[ktParameter] = type.toKtType(analysisContext)
            }
    
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Mon Apr 29 12:48:54 GMT 2024
    - 34.8K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

        }
    }
    
    /**
     *  The left hand side of a `::` is regarded as used unless it refers to a type.
     *  We decide that the LHS is a type reference by checking if the left hand
     *  side is a (qualified) name, and, in case it _is_, resolving that name.
     *
     *  If it resolves to a non-class declaration, it does _not_ refer to a type.
     */
    private fun doesDoubleColonUseLHS(lhs: PsiElement): Boolean {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Feb 12 20:38:23 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiValueParameterSymbol.kt

            get() = withValidityAssertion { false }
    
        override val returnType: KtType
            get() = withValidityAssertion {
                val type = (descriptor as? ValueParameterDescriptor)?.varargElementType ?: descriptor?.type
                return type?.toKtType(analysisContext) ?: createErrorType()
            }
    
        override val name: Name
            get() = withValidityAssertion {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:46 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

            // Note that the resolved type for the const expression is not always matched with the const kind. For example,
            //   fun foo(x: Int) {
            //     when (x) {
            //       -2_147_483_628 -> ...
            //   } }
            // That constant is encoded as `unaryMinus` call with the const 2147483628 of long type, while the resolved type is Int.
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Mar 20 14:53:27 GMT 2024
    - 16.5K bytes
    - Viewed (0)
Back to top