Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for __cache (0.44 sec)

  1. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/session/AbstractSessionInvalidationTest.kt

        protected abstract fun getSessionKtModule(session: SESSION): KtModule
    
        protected abstract fun isSessionValid(session: SESSION): Boolean
    
        /**
         * In some cases, it might be legal for a session cache to evict sessions which are still valid. Such sessions would fail the validity
         * check (see [checkSessionsMarkedInvalid]) and should be skipped.
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

                }
            }
        }
    }
    
    private class BuilderCache<From, To : KaSymbol> {
        private val cache = ContainerUtil.createConcurrentWeakKeySoftValueMap<From, To>()
    
        inline fun <reified S : To> cache(key: From, calculation: () -> S): S {
            val value = cache.getOrPut(key, calculation)
            return value as? S
                ?: errorWithAttachment("Cannot cast ${value::class} to ${S::class}") {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:43 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  3. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/session/AbstractAnalysisSessionInvalidationTest.kt

        override fun isSessionValid(session: KaSession): Boolean = session.isValid()
    
        /**
         * The analysis session cache disregards whether libraries were invalidated during global invalidation, so some valid library analysis
         * sessions may have been evicted from the cache and should not be checked for validity.
         */
        override fun shouldSkipValidityCheck(session: KaSession): Boolean =
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/KtFirStarImportingScope.kt

                    import.resolvedParentClassId
                )
            }
        }
    
        override fun getConstructors(): Sequence<KaConstructorSymbol> = withValidityAssertion { emptySequence() }
    
        // todo cache?
        override fun getPossibleCallableNames(): Set<Name> = withValidityAssertion {
            imports.flatMapTo(hashSetOf()) { import: Import ->
                if (import.relativeClassName == null) { // top level callable
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/FirSyntheticFunctionInterfaceSourceProvider.kt

    import org.jetbrains.kotlin.name.FqName
    import org.jetbrains.kotlin.name.Name
    import org.jetbrains.kotlin.name.StandardClassIds
    import org.jetbrains.kotlin.psi.KtClassOrObject
    
    //todo introduce LibraryModificationTracker based cache?
    internal object FirSyntheticFunctionInterfaceSourceProvider {
        fun findPsi(fir: FirDeclaration): PsiElement? {
            return when (fir) {
                is FirSimpleFunction -> provideSourceForInvokeFunction(fir)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/declarations/KotlinDeclarationProvider.kt

    import org.jetbrains.kotlin.psi.*
    
    /**
     * A declaration provider for a given scope. It can be created via [KotlinDeclarationProviderFactory].
     *
     * It may be called frequently, so implementations should cache the results.
     */
    public abstract class KotlinDeclarationProvider : KotlinComposableProvider {
        public abstract fun getClassLikeDeclarationByClassId(classId: ClassId): KtClassLikeDeclaration?
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:57:40 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. ChangeLog.md

    - [`KT-61331`](https://youtrack.jetbrains.com/issue/KT-61331) K2: add cache restoring in case of existing context
    - [`KT-61408`](https://youtrack.jetbrains.com/issue/KT-61408) K2: IDE K2: "Inconsistency in the cache. Someone without context put a null value in the cache"
    
    ### Analysis. Light Classes
    
    #### Performance Improvements
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:14:23 UTC 2024
    - 292.1K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirScopeProvider.kt

             * with [getCompositeScope]) avoids duplicate inner classes, as they are contained in non-static and static scopes.
             *
             * A proper combined declared member scope kind also makes it easier to cache combined scopes directly (if needed).
             */
            COMBINED,
        }
    
        private fun getDeclaredMemberScope(classSymbol: KaSymbolWithMembers, kind: DeclaredMemberScopeKind): KaScope {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtFirAnalysisSessionProvider.kt

                modules.forEach { analysisSessionProvider.cache.remove(it) }
            }
    
            override fun afterGlobalInvalidation() {
                // Session invalidation events currently don't report whether library modules were included in the global invalidation. This is
                // by design to avoid iterating through the whole analysis session cache and to simplify the global session invalidation event.
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. analysis/analysis-api-standalone/src/org/jetbrains/kotlin/analysis/api/standalone/KotlinStaticPackagePartProviderFactory.kt

    ) : KotlinPackagePartProviderFactory() {
        private val cache = ContainerUtil.createConcurrentSoftMap<GlobalSearchScope, PackagePartProvider>()
    
        override fun createPackagePartProvider(scope: GlobalSearchScope): PackagePartProvider {
            return cache.getOrPut(scope) {
                packagePartProvider(scope)
            }
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 985 bytes
    - Viewed (0)
Back to top