[light classes] move KtLightClassBase to light-classes-base module
^KT-53097
This commit is contained in:
@@ -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) }
|
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 {
|
inline fun <T> runReadAction(crossinline runnable: () -> T): T {
|
||||||
return ApplicationManager.getApplication().runReadAction(Computable { runnable() })
|
return ApplicationManager.getApplication().runReadAction(Computable { runnable() })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user