Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for FirTypeRef (0.16 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirTypeAndAnnotations.kt

    import org.jetbrains.kotlin.fir.symbols.impl.FirClassSymbol
    import org.jetbrains.kotlin.fir.types.FirTypeRef
    
    internal fun FirClassSymbol<*>.superTypesList(builder: KaSymbolByFirBuilder): List<KaType> = resolvedSuperTypeRefs.mapToKtType(builder)
    
    private fun List<FirTypeRef>.mapToKtType(
        builder: KaSymbolByFirBuilder,
    ): List<KaType> = map { typeRef ->
        builder.typeBuilder.buildKtType(typeRef)
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/pointers/FirCallableSignature.kt

    import org.jetbrains.kotlin.fir.symbols.lazyResolveToPhase
    import org.jetbrains.kotlin.fir.types.AbbreviatedTypeAttribute
    import org.jetbrains.kotlin.fir.types.ConeAttribute
    import org.jetbrains.kotlin.fir.types.FirTypeRef
    
    /**
     * **Note**: the signature doesn't contain a name. This check should be done externally.
     */
    internal class FirCallableSignature private constructor(
        private val receiverType: String?,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 16:54:06 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. analysis/analysis-api-standalone/analysis-api-fir-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/services/LLStandaloneFirElementByPsiElementChooser.kt

            coneTypeReference: FirTypeRef,
            isVararg: Boolean
        ): Boolean =
            psiTypeReference.toKotlinTypeReference().renderTypeAsKotlinType(isVararg) == coneTypeReference.renderTypeAsKotlinType()
    
        @Suppress("DEPRECATION_ERROR")
        private fun KtTypeReference.toKotlinTypeReference(): FirTypeRef {
            // Maybe resolve all types here to not to work with FirTypeRef directly
            return PsiRawFirBuilder(
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 15 11:34:07 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirArgumentsConverter.kt

    import org.jetbrains.kotlin.fir.symbols.impl.FirValueParameterSymbol
    import org.jetbrains.kotlin.fir.symbols.impl.FirVariableSymbol
    import org.jetbrains.kotlin.fir.types.ConeKotlinType
    import org.jetbrains.kotlin.fir.types.FirTypeRef
    import org.jetbrains.kotlin.psi
    import org.jetbrains.kotlin.psi.KtExpression
    
    /*
     * This file was generated automatically
     * DO NOT MODIFY IT MANUALLY
     */
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/HLDiagnosticConverter.kt

    import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol
    import org.jetbrains.kotlin.fir.symbols.impl.*
    import org.jetbrains.kotlin.fir.types.ConeKotlinType
    import org.jetbrains.kotlin.fir.types.FirTypeRef
    import org.jetbrains.kotlin.lexer.KtKeywordToken
    import org.jetbrains.kotlin.lexer.KtModifierKeywordToken
    import org.jetbrains.kotlin.metadata.deserialization.VersionRequirement
    import org.jetbrains.kotlin.name.CallableId
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirPsiTypeProvider.kt

                        }
                    }
                }
            }
            val firTypeRef = javaTypeRef.resolveIfJavaType(analysisSession.useSiteSession, javaTypeParameterStack, source = null)
            val coneKotlinType = (firTypeRef as? FirResolvedTypeRef)?.type ?: return null
            return coneKotlinType.asKtType()
        }
    }
    
    private fun ConeKotlinType.simplifyType(
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 20:26:34 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

            is FirExpression -> fir.resolvedType.asKtType()
            is FirNamedReference -> fir.getCorrespondingTypeIfPossible()?.asKtType()
            is FirStatement -> with(analysisSession) { builtinTypes.unit }
            is FirTypeRef, is FirImport, is FirPackageDirective, is FirLabel, is FirTypeParameterRef -> null
    
            // `listOf<_>(1)` where `expression` is `_`
            is FirPlaceholderProjection -> null
            else -> null
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

                return coneType.isSomeFunctionType(analysisSession.firResolveSession.useSiteFirSession)
            }
    
            fun buildKtType(coneType: FirTypeRef): KaType {
                return buildKtType(coneType.coneType)
            }
    
            fun buildTypeProjection(coneType: ConeTypeProjection): KaTypeProjection = when (coneType) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:43 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            return listOf(symbolBuilder.classifierBuilder.buildClassifierSymbol(firClassSymbol))
        }
    
        private tailrec fun tryGettingSymbolFromPartiallyResolvedType(
            typeRef: FirTypeRef?,
            expression: KtSimpleNameExpression,
            session: FirSession,
            symbolBuilder: KaSymbolByFirBuilder,
        ): Collection<KaSymbol> {
            return when (typeRef) {
                null -> emptyList()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Jun 10 20:18:28 UTC 2024
    - 37K bytes
    - Viewed (0)
Back to top