Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for Shen (0.22 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

                currentExpression == ifExpression.then || currentExpression == ifExpression.`else`
            } ?: return null
            getExpectedType(ifExpression)?.let { return it }
    
            // if `KtIfExpression` doesn't have an expected type, get the expected type of the current branch from the other branch
            val otherBranch = (if (expression == ifExpression.then) ifExpression.`else` else ifExpression.then) ?: return null
    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)
  2. 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)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

                // treated as a property read.
                return resolveCall(parentBinaryExpression)
            }
    
            if (psi is KtCallableReferenceExpression) {
                return resolveCall(psi.callableReference)
            }
    
            when (unwrappedPsi) {
                is KtBinaryExpression -> {
    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)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

        fun evaluate(
            fir: FirElement?,
            mode: KtConstantEvaluationMode,
        ): FirLiteralExpression<*>? =
            when (fir) {
                is FirPropertyAccessExpression -> {
                    when (val referredVariable = fir.calleeReference.toResolvedVariableSymbol()) {
                        is FirPropertySymbol -> {
                            if (referredVariable.callableId.isStringLength) {
    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)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

        ): KtConstantAnnotationValue? {
            val expression = psi as? KtElement
    
            @OptIn(UnresolvedExpressionTypeAccess::class)
            val type = coneTypeOrNull
            val constantValue = when {
                value == null -> KtConstantValue.KtNullConstantValue(expression)
                type == null -> KtConstantValueFactory.createConstantValue(value, psi as? KtElement)
    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)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/KtFe10TypeSystemCommonBackendContextForTypeMapping.kt

            require(this is TypeConstructor)
            return when (this) {
                is NewTypeVariableConstructor -> originalTypeParameter != null
                else -> declarationDescriptor is TypeParameterDescriptor
            }
        }
    
        override fun TypeConstructorMarker.asTypeParameter(): TypeParameterMarker {
            require(this is TypeConstructor)
            return when (this) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Feb 10 16:01:04 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirImportOptimizer.kt

        }
    }
    
    private val FirErrorNamedReference.unresolvedName: Name?
        get() = when (val diagnostic = diagnostic) {
            is ConeUnresolvedError -> diagnostic.unresolvedName
            is ConeAmbiguityError -> diagnostic.name
            else -> null
        }
    
    private val ConeUnresolvedError.unresolvedName: Name?
        get() = when (this) {
            is ConeUnresolvedNameError -> name
            is ConeUnresolvedReferenceError -> name
    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)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirVisibilityChecker.kt

         */
        private fun KtFirPsiJavaClassSymbol.isVisibleByPsi(useSiteFile: KtFirFileSymbol): Boolean? {
            when (visibility) {
                Visibilities.Private ->
                    // Private classes from Java cannot be accessed from Kotlin.
                    return false
    
                Visibilities.Public ->
                    return when (val outerClass = this.outerClass) {
                        null -> true
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Jan 05 16:04:14 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiNamedClassOrObjectSymbol.kt

                when (psi) {
                    is KtEnumEntry -> invalidEnumEntryAsClassKind()
                    is KtObjectDeclaration -> when {
                        psi.isCompanion() -> KtClassKind.COMPANION_OBJECT
                        psi.isObjectLiteral() -> KtClassKind.ANONYMOUS_OBJECT
                        else -> KtClassKind.OBJECT
                    }
                    is KtClass -> when {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:46 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/types/KtFe10FunctionalType.kt

            get() = withValidityAssertion {
                when {
                    descriptor.functionTypeKind.isReflectType -> fe10Type.arguments.dropLast(1)
                    else -> fe10Type.getValueParameterTypesFromFunctionType()
                }.map { it.type.toKtType(analysisContext) }
            }
    
        override val returnType: KtType
            get() = withValidityAssertion {
                when {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 5.6K bytes
    - Viewed (0)
Back to top