Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for unwrapParenthesesLabelsAndAnnotations (0.36 sec)

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

        override fun getKtExpressionType(expression: KtExpression): KtType? {
            // Not sure if it's safe enough. In theory, some annotations on expressions might change its type
            val unwrapped = expression.unwrapParenthesesLabelsAndAnnotations() as? KtExpression ?: return null
            if (unwrapped.getParentOfTypes(false, *NON_EXPRESSION_CONTAINERS) != null) {
                return null
            }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 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/KtFirExpressionInfoProvider.kt

    import org.jetbrains.kotlin.fir.resolve.transformers.FirWhenExhaustivenessTransformer
    import org.jetbrains.kotlin.idea.references.mainReference
    import org.jetbrains.kotlin.psi.*
    import org.jetbrains.kotlin.psi.psiUtil.unwrapParenthesesLabelsAndAnnotations
    import org.jetbrains.kotlin.utils.exceptions.errorWithAttachment
    import org.jetbrains.kotlin.utils.exceptions.withPsiEntry
    
    internal class KtFirExpressionInfoProvider(
    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