Skip to content

Conversation

@sellophane
Copy link
Contributor

No description provided.

import kotlinx.coroutines.runBlocking
import kotlin.coroutines.CoroutineContext

object KotlinCoroutinesScope : CoroutineScope {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't like name of this object.
It can by KotlinAnalyzisScope or KotlinSupervisedScope if we want to use it somewhere else.

import org.jetbrains.kotlin.progress.CompilationCanceledStatus
import org.jetbrains.kotlin.progress.ProgressIndicatorAndCompilationCanceledStatus

public class KotlinAnalysisJob(private val javaProject: IJavaProject) : Job("Kotlin Analysis") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this class as it doesn't have any purpose now.


val analysisResultWithProvider = if (ktFiles.isEmpty())
KotlinAnalyzer.analyzeProject(project)
runBlocking {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runBlocking here is completely unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants