RealKotlinEnvironment

class RealKotlinEnvironment(val projectPath: ProjectPath.StringProjectPath, val sourceSetName: SourceSetName, val classpathFiles: LazyDeferred<List<File>>, val sourceDirs: Collection<File>, val kotlinLanguageVersion: LanguageVersion?, val jvmTarget: JvmTarget, val dependencyModuleDescriptorAccess: DependencyModuleDescriptorAccess, val logger: McLogger, val resetManager: ResetManager) : KotlinEnvironment(source)

Parameters

sourceDirs

all jvm source code directories for this source set, like [...]/myProject/src/main/java.

resetManager

used to reset caching

Constructors

Link copied to clipboard
constructor(projectPath: ProjectPath.StringProjectPath, sourceSetName: SourceSetName, classpathFiles: LazyDeferred<List<File>>, sourceDirs: Collection<File>, kotlinLanguageVersion: LanguageVersion?, jvmTarget: JvmTarget, dependencyModuleDescriptorAccess: DependencyModuleDescriptorAccess, logger: McLogger, resetManager: ResetManager)

Types

Link copied to clipboard
class Factory @Inject constructor(val dependencyModuleDescriptorAccess: DependencyModuleDescriptorAccess, val logger: McLogger) : KotlinEnvironmentFactory

Dagger implementation for KotlinEnvironmentFactory

Properties

Link copied to clipboard
open override val analysisResultDeferred: LazyDeferred<AnalysisResult>
Link copied to clipboard
open override val bindingContextDeferred: LazyDeferred<BindingContext>
Link copied to clipboard

.jar files from external dependencies

Link copied to clipboard
open override val compilerConfiguration: LazyDeferred<CompilerConfiguration>
Link copied to clipboard
open override val coreEnvironment: LazyDeferred<KotlinCoreEnvironment>
Link copied to clipboard

provides the module descriptors of all dependency source sets from the current module and dependency modules

Link copied to clipboard
Link copied to clipboard
val jvmTarget: JvmTarget

the version of Java being compiled to

Link copied to clipboard
val kotlinLanguageVersion: LanguageVersion?

the version of Kotlin being used

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

logs Kotlin compiler messages during analysis

Link copied to clipboard
Link copied to clipboard
open override val moduleDescriptorDeferred: LazyDeferred<ModuleDescriptorImpl>
Link copied to clipboard

path of the associated Gradle project

Link copied to clipboard
Link copied to clipboard
private val sourceDirs: Collection<File>
Link copied to clipboard
private val sourceFiles: Set<File>
Link copied to clipboard

name of the associated SourceSet

Functions

Link copied to clipboard
open suspend override fun bestAvailablePsiFactory(): RealMcPsiFileFactory
Link copied to clipboard
private suspend fun createAnalysisResult(coreEnvironment: KotlinCoreEnvironment, ktFiles: List<KtFile>, dependencyModuleDescriptors: List<ModuleDescriptorImpl>): AnalysisResult
Link copied to clipboard
private fun createCompilerConfiguration(classpathFiles: List<File>, sourceFiles: List<File>, kotlinLanguageVersion: LanguageVersion?, jvmTarget: JvmTarget): CompilerConfiguration
Link copied to clipboard
private fun createKotlinCoreEnvironment(configuration: CompilerConfiguration): KotlinCoreEnvironment
Link copied to clipboard
open suspend override fun javaPsiFile(file: File): PsiJavaFile
Link copied to clipboard
open suspend override fun ktFile(file: File): KtFile