Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for KaTypeScope (0.18 sec)

  1. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/scopeProvider/AbstractTypeScopeTest.kt

        }
    
        private fun KaSession.renderForTests(typeScope: KaTypeScope): String {
            val callables = typeScope.getCallableSignatures().toList()
            return prettyPrint {
                callables.forEach {
                    appendLine(stringRepresentation(it))
                }
            }
        }
    
        private fun KaSession.prettyPrintForTests(typeScope: KaTypeScope): String {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirScopeSubstitution.kt

    import org.jetbrains.kotlin.analysis.api.scopes.KaTypeScope
    import org.jetbrains.kotlin.analysis.utils.errors.unexpectedElementError
    
    internal class KaFirScopeSubstitution(
        override val analysisSession: KaFirSession,
    ) : KaScopeSubstitution(), KaFirSessionComponent {
    
        @OptIn(KaAnalysisApiInternals::class)
        override fun getDeclarationScope(scope: KaTypeScope): KaScope {
            return when (scope) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/scopes/KtCompositeTypeScope.kt

    import org.jetbrains.kotlin.analysis.api.scopes.KaTypeScope
    import org.jetbrains.kotlin.analysis.api.signatures.KaCallableSignature
    import org.jetbrains.kotlin.analysis.api.symbols.KaClassifierSymbol
    import org.jetbrains.kotlin.analysis.api.symbols.KaConstructorSymbol
    import org.jetbrains.kotlin.name.Name
    
    @KaAnalysisApiInternals
    class KaCompositeTypeScope(
        val subScopes: List<KaTypeScope>,
        override val token: KaLifetimeToken
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtScopeSubstitution.kt

    import org.jetbrains.kotlin.analysis.api.scopes.KaTypeScope
    
    public abstract class KaScopeSubstitution : KaSessionComponent() {
        public abstract fun getDeclarationScope(scope: KaTypeScope): KaScope
    }
    
    public typealias KtScopeSubstitution = KaScopeSubstitution
    
    public interface KaScopeSubstitutionMixIn : KaSessionMixIn {
        public fun KaTypeScope.getDeclarationScope(): KaScope =
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 942 bytes
    - Viewed (0)
  5. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtScopeProvider.kt

         * Returned [KaTypeScope] includes synthetic Java properties.
         *
         * @see KaTypeScope
         * @see KaTypeProviderMixIn.getKaType
         */
        public fun KaType.getTypeScope(): KaTypeScope? =
            withValidityAssertion { analysisSession.scopeProvider.getTypeScope(this) }
    
        /**
         * Returns a [KaTypeScope] with synthetic Java properties created for a given [KaType].
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ScopeSubstitution.kt

    import org.jetbrains.kotlin.analysis.api.scopes.KaScope
    import org.jetbrains.kotlin.analysis.api.scopes.KaTypeScope
    
    internal class KaFe10ScopeSubstitution(
        override val analysisSession: KaFe10Session,
    ) : KaScopeSubstitution(), KaFe10SessionComponent {
    
        override fun getDeclarationScope(scope: KaTypeScope): KaScope {
            TODO()
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 856 bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/KtFirDelegatingTypeScope.kt

    import org.jetbrains.kotlin.analysis.api.lifetime.withValidityAssertion
    import org.jetbrains.kotlin.analysis.api.scopes.KaScopeNameFilter
    import org.jetbrains.kotlin.analysis.api.scopes.KaTypeScope
    import org.jetbrains.kotlin.analysis.api.signatures.KaCallableSignature
    import org.jetbrains.kotlin.analysis.api.symbols.KaClassifierSymbol
    import org.jetbrains.kotlin.analysis.api.symbols.KaConstructorSymbol
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ScopeProvider.kt

            return KaCompositeScope.create(subScopes, token)
        }
    
        override fun getTypeScope(type: KaType): KaTypeScope {
            require(type is KaFe10Type)
            TODO()
        }
    
        override fun getSyntheticJavaPropertiesScope(type: KaType): KaTypeScope {
            require(type is KaFe10Type)
            TODO()
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/scopes/KtTypeScope.kt

     *
     * @see org.jetbrains.kotlin.analysis.api.components.KaScopeProviderMixIn.getTypeScope
     * @see KaCallableSignature
     */
    public interface KaTypeScope : KaScopeLike {
    
        /**
         * Return a sequence of [KaCallableSignature] which current scope contain if declaration name matches [nameFilter].
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirScopeProvider.kt

        override fun getTypeScope(type: KaType): KaTypeScope? {
            check(type is KaFirType) { "KtFirScopeProvider can only work with KtFirType, but ${type::class} was provided" }
            return getFirTypeScope(type)
                ?.withSyntheticPropertiesScopeOrSelf(type.coneType)
                ?.let { convertToKtTypeScope(it) }
        }
    
        override fun getSyntheticJavaPropertiesScope(type: KaType): KaTypeScope? {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top