Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for EDT (0.02 sec)

  1. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/permissions/permissions.kt

        }
    }
    
    @RequiresOptIn("Analysis should not be allowed to be run from the EDT, as otherwise it may cause IDE freezes.")
    public annotation class KaAllowAnalysisOnEdt
    
    /**
     * Allows [analyze][org.jetbrains.kotlin.analysis.api.analyze] to be called on the EDT in the given [action], which is normally not allowed.
     *
     * Analysis is not supposed to be invoked from the EDT, as it may cause freezes. Use at your own risk!
     */
    @KaAllowAnalysisOnEdt
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/permissions/KaBaseAnalysisPermissionChecker.kt

        }
    
        override fun getRejectionReason(): String {
            val application = ApplicationManager.getApplication()
    
            if (isProhibitedEdtAnalysis(application)) {
                return "Called in the EDT thread."
            }
    
            if (isProhibitedWriteActionAnalysis(application)) {
                return "Called from a write action."
            }
    
            permissionRegistry.explicitAnalysisRestriction?.let { restriction ->
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 22:09:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/permissions/KotlinAnalysisPermissionOptions.kt

    import org.jetbrains.kotlin.analysis.api.platform.KotlinOptionalPlatformComponent
    
    /**
     * [KotlinAnalysisPermissionOptions] gives an Analysis API platform the choice whether to allow analysis on the EDT and in write actions by
     * default.
     *
     * @see KotlinDefaultAnalysisPermissionOptions
     */
    public interface KotlinAnalysisPermissionOptions : KotlinOptionalPlatformComponent {
        /**
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:57:40 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/references/ReadWriteAccessCheckerDescriptorsImpl.kt

            // Various parts of the IJ plugin use the read/write access checker without being aware that it uses `analyze` under the hood. For
            // now, it makes more sense to allow analysis on EDT/from write actions here, as there are many such usages in the IJ plugin.
            return allowAnalysisOnEdt {
                allowAnalysisFromWriteAction {
                    val resolvedCall = analyze(assignment) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top