Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isObject (6.3 sec)

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

                    if (whenExpression != null) {
                        val subject = whenExpression.subjectExpression ?: return with(analysisSession) { builtinTypes.BOOLEAN }
                        val kotlinType = analysisContext.analyze(subject).getType(subject)
                        return kotlinType?.toKtNonErrorType(analysisContext)
                    }
                }
    
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Tue Oct 24 20:59:56 GMT 2023
    - 15.5K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

            val whenExpression = (condition.parent as? KtWhenEntry)?.parent as? KtWhenExpression ?: return null
            val subject = whenExpression.subjectExpression ?: return with(analysisSession) { builtinTypes.BOOLEAN }
            return getKtExpressionNonErrorType(subject)
        }
    
        private fun getKtExpressionNonErrorType(expression: KtExpression): KtType? =
            getKtExpressionType(expression)?.nonErrorTypeOrNull()
    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-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

                // Parentheses are ignored for this analysis.
                is KtParenthesizedExpression ->
                    doesParentUseChild(parent.parent, parent)
    
                // When expressions use the subject expression _unless_ the first branch in the
                // when is an `else`.
                is KtWhenExpression ->
                    parent.subjectExpression == child && parent.entries.firstOrNull()?.isElse == false
    
    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)
Back to top