Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ConeErrorType (0.91 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/types/KtFirTypeErrorType.kt

    import org.jetbrains.kotlin.fir.diagnostics.ConeTypeVariableTypeIsNotInferred
    import org.jetbrains.kotlin.fir.types.ConeErrorType
    import org.jetbrains.kotlin.fir.types.renderForDebugging
    
    internal class KaFirErrorType(
        override val coneType: ConeErrorType,
        private val builder: KaSymbolByFirBuilder,
    ) : KaErrorType, KaFirType {
        override val token: KaLifetimeToken get() = builder.token
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

                }
    
                is FirGetClassCall -> {
                    val coneType = getTargetType()?.fullyExpandedType(builder.rootSession)
    
                    if (coneType is ConeClassLikeType && coneType !is ConeErrorType) {
                        val classId = coneType.lookupTag.classId
                        val type = builder.typeBuilder.buildKtType(coneType)
                        KaKClassAnnotationValue(type, classId, sourcePsi, token)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeCreator.kt

    import org.jetbrains.kotlin.fir.resolve.providers.symbolProvider
    import org.jetbrains.kotlin.fir.scopes.impl.toConeType
    import org.jetbrains.kotlin.fir.symbols.impl.FirClassLikeSymbol
    import org.jetbrains.kotlin.fir.types.ConeErrorType
    import org.jetbrains.kotlin.fir.types.ConeClassLikeType
    import org.jetbrains.kotlin.fir.types.typeContext
    
    internal class KaFirTypeCreator(
        override val analysisSession: KaFirSession,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

                }
                is ConeIntersectionType -> intersectedTypes.asSequence().flatMap { it.getDirectSuperTypes(shouldApproximate) }
                is ConeErrorType -> emptySequence()
                is ConeLookupTagBasedType -> getSubstitutedSuperTypes(shouldApproximate)
                else -> emptySequence()
            }.distinct()
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 10:25:23 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

                        }
                    }
                    is ConeTypeParameterType -> KaFirTypeParameterType(coneType, this@KaSymbolByFirBuilder)
                    is ConeErrorType -> when (val diagnostic = coneType.diagnostic) {
                        is ConeUnresolvedError, is ConeUnmatchedTypeArgumentsError -> {
                            KaFirClassErrorType(coneType, diagnostic, this@KaSymbolByFirBuilder)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:43 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

        ////// KINDS
    
        private fun ConeKotlinType.toConstantValueKind(): ConstantValueKind? =
            when (this) {
                is ConeErrorType -> null
                is ConeLookupTagBasedType -> lookupTag.name.asString().toConstantValueKind()
                is ConeFlexibleType -> upperBound.toConstantValueKind()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 11:53:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirPsiTypeProvider.kt

        mode: TypeMappingMode,
        useSitePosition: PsiElement,
        allowErrorTypes: Boolean,
    ): PsiTypeElement? {
        if (this !is SimpleTypeMarker) return null
    
        if (!allowErrorTypes && (this is ConeErrorType)) return null
    
        (this as? ConeClassLikeType)?.lookupTag?.toSymbol(session)?.lazyResolveToPhase(FirResolvePhase.STATUS)
    
        val signatureWriter = BothSignatureWriter(BothSignatureWriter.Mode.SKIP_CHECKS)
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 20:26:34 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

                val containingClass = (fir.dispatchReceiver as? FirThisReceiverExpression)?.calleeReference?.boundSymbol as? FirClassSymbol<*>
    
                if (fir.calleeReference is FirSuperReference && fir.resolvedType is ConeErrorType && containingClass != null) {
                    val superTypes = containingClass.resolvedSuperTypes
                    when (superTypes.size) {
                        0 -> analysisSession.builtinTypes.any
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            val resolvedSymbol = type?.lookupTag?.toSymbol(session) as? FirBasedSymbol<*>
    
            val symbol = resolvedSymbol ?: run {
                val diagnostic = (this as? ConeErrorType)?.diagnostic
                (diagnostic as? ConeUnmatchedTypeArgumentsError)?.symbol
            }
    
            return symbol?.fir?.buildSymbol(symbolBuilder)
        }
    
        private fun FirResolvedTypeRef.getDeclaredType() =
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Jun 10 20:18:28 UTC 2024
    - 37K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

                return outerTypeElement?.unwrapNullability() as? KtUserType
            }
    
        val ConeKotlinType.candidateClassId: ClassId?
            get() {
                return when (this) {
                    is ConeErrorType -> when (val diagnostic = this.diagnostic) {
                        // Tolerate code that misses type parameters while shortening it.
                        is ConeUnmatchedTypeArgumentsError -> diagnostic.symbol.classId
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 16:54:07 UTC 2024
    - 69.6K bytes
    - Viewed (0)
Back to top