AnalysisEnvironment

class AnalysisEnvironment(val messageCollector: MessageCollector, val analysisPlatform: Platform) : Disposable

Kotlin as a service entry point

Configures environment, analyses files and provides facilities to perform code processing without emitting bytecode

$messageCollector: required by compiler infrastructure and will receive all compiler messages $body: optional and can be used to configure environment without creating local variable

Constructors

Link copied to clipboard
fun AnalysisEnvironment(messageCollector: MessageCollector, analysisPlatform: Platform)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addClasspath(path: File)

Adds path to classpath. $path: path to add

fun addClasspath(paths: List<File>)

Adds list of paths to classpath. $paths: collection of files to add

Link copied to clipboard
fun addRoots(list: List<ContentRoot>)
Link copied to clipboard
fun addSources(sourceDirectories: Iterable<File>)

Adds list of paths to source roots. $list: collection of files to add

Link copied to clipboard
fun configureJdkClasspathRoots()
Link copied to clipboard
fun createCoreEnvironment(): KotlinCoreEnvironment
Link copied to clipboard
fun createResolutionFacade(environment: KotlinCoreEnvironment): Pair<DokkaResolutionFacade, DokkaResolutionFacade>
Link copied to clipboard
open override fun dispose()

Disposes the environment and frees all associated resources.

Link copied to clipboard
fun loadLanguageVersionSettings(languageVersionString: String?, apiVersionString: String?)
Link copied to clipboard
fun Collection<KotlinLibrary>.registerLibraries(): List<DokkaKlibLibraryInfo>

Properties

Link copied to clipboard
val analysisPlatform: Platform
Link copied to clipboard
val classpath: List<File>

Classpath for this environment.

Link copied to clipboard
val configuration: CompilerConfiguration
Link copied to clipboard
val messageCollector: MessageCollector
Link copied to clipboard
val sources: List<String>

List of source roots for this environment.