- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for KtErrorConstantValue (0.16 sec)
-
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompileTimeConstantProvider.kt
try { FirCompileTimeConstantEvaluator.evaluateAsKtConstantValue(fir, mode) } catch (e: ArithmeticException) { KtConstantValue.KtErrorConstantValue(e.localizedMessage, sourcePsi) } } // For invalid code like the following, // ``` // when { // true, false -> {} // }
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Tue Nov 07 09:06:00 GMT 2023 - 2.8K bytes - Viewed (0) -
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt
} return this.modality } internal fun ConstantValue<*>.toKtConstantValue(): KtConstantValue { return when (this) { is ErrorValue.ErrorValueWithMessage -> KtConstantValue.KtErrorConstantValue(message, sourcePsi = null) is BooleanValue -> KtConstantValue.KtBooleanConstantValue(value, sourcePsi = null) is DoubleValue -> KtConstantValue.KtDoubleConstantValue(value, sourcePsi = null)
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Thu Apr 25 07:15:56 GMT 2024 - 33.2K bytes - Viewed (0)