[light classes] move KtLightClassBase to light-classes-base module

^KT-53097
This commit is contained in:
Dmitry Gridin
2022-07-07 20:23:46 +02:00
committed by Space
parent a5aca90d0a
commit 602a7dd73d
3 changed files with 9 additions and 4 deletions
@@ -0,0 +1,9 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.asJava.classes
internal fun <L : Any> L.invalidAccess(): Nothing =
error("Cls delegate shouldn't be loaded for not too complex ultra-light classes! Qualified name: ${javaClass.name}")
@@ -539,10 +539,6 @@ internal inline fun Project.applyCompilerPlugins(body: (UltraLightClassModifierE
UltraLightClassModifierExtension.getInstances(this).forEach { body(it) }
}
internal fun <L : Any> L.invalidAccess(): Nothing =
error("Cls delegate shouldn't be loaded for not too complex ultra-light classes! Qualified name: ${javaClass.name}")
inline fun <T> runReadAction(crossinline runnable: () -> T): T {
return ApplicationManager.getApplication().runReadAction(Computable { runnable() })
}