HL API: implement tests for reference resolve

This commit is contained in:
Ilya Kirillov
2021-07-21 17:06:18 +02:00
committed by teamcityserver
parent 55489b6249
commit 970d7b5a78
8 changed files with 242 additions and 12 deletions
@@ -462,10 +462,15 @@ class KotlinCoreEnvironment private constructor(
companion object {
private val LOG = Logger.getInstance(KotlinCoreEnvironment::class.java)
private val APPLICATION_LOCK = Object()
@PublishedApi
internal val APPLICATION_LOCK = Object()
private var ourApplicationEnvironment: KotlinCoreApplicationEnvironment? = null
private var ourProjectCount = 0
inline fun <R> underApplicationLock(action: () -> R): R =
synchronized(APPLICATION_LOCK) { action() }
@JvmStatic
fun createForProduction(
parentDisposable: Disposable, configuration: CompilerConfiguration, configFiles: EnvironmentConfigFiles