Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for commonSupertype (0.57 sec)

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

         * Computes the common super type of the given collection of [KaType].
         *
         * If the collection is empty, it returns `null`.
         */
        public fun commonSuperType(types: Collection<KaType>): KaType? =
            withValidityAssertion { analysisSession.typeProvider.commonSuperType(types) }
    
        /**
         * Resolve [KtTypeReference] and return corresponding [KaType] if resolved.
         *
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt

            return kotlinType.toKtType(analysisContext)
        }
    
        override fun commonSuperType(types: Collection<KaType>): KaType {
            val kotlinTypes = types.map { (it as KaFe10Type).fe10Type }
            return CommonSupertypes.commonSupertype(kotlinTypes).toKtType(analysisContext)
        }
    
        override fun getKtType(ktTypeReference: KtTypeReference): KaType {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

                isNullable = false
            )
    
            return type.asKtType()
        }
    
        override fun commonSuperType(types: Collection<KaType>): KaType? {
            return analysisSession.useSiteSession.typeContext
                .commonSuperTypeOrNull(types.map { it.coneType })
                ?.asKtType()
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 10:25:23 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top