Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for whale (0.15 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

            //   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.
            // After computing the compile time constant, we need to adjust its type here.
            val expression =
                if (expectedKind != null && expectedKind != kind && value is Number) {
    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)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

         * we won't be able to handle this request, and just return null. So the user will only be able to see the type
         * of the whole expression instead, and that is not what he wants.
         */
        private fun FirNamedReference.getCorrespondingTypeIfPossible(): ConeKotlinType? =
            findOuterPropertyAccessExpression()?.resolvedType
    
        /**
    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)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

        private fun KtCallInfo?.toKtCallCandidateInfos(bestCandidateDescriptors: Set<CallableDescriptor>): List<KtCallCandidateInfo> {
            // TODO: We should prefer to compare symbols instead of descriptors, but we can't do so while symbols are not cached.
            fun KtCall.isInBestCandidates(): Boolean {
                val descriptor = this.safeAs<KtFunctionCall<*>>()?.descriptor as? CallableDescriptor
    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)
Back to top