Revert "Workaround an inliner problem upon which the compiler code itself stumbled ^KT-35856 Fixed"

This reverts commit 59175912
This commit is contained in:
Victor Petukhov
2020-01-24 16:40:44 +03:00
parent 90b250d241
commit 5c6e710013
7 changed files with 3 additions and 63 deletions
@@ -418,8 +418,8 @@ inline fun <T> runReadAction(crossinline runnable: () -> T): T {
return ApplicationManager.getApplication().runReadAction(Computable { runnable() })
}
fun KtClassOrObject.safeIsLocal(): Boolean = runReadAction { this.isLocal }
inline fun KtClassOrObject.safeIsLocal(): Boolean = runReadAction { this.isLocal }
fun KtFile.safeIsScript() = runReadAction { this.isScript() }
inline fun KtFile.safeIsScript() = runReadAction { this.isScript() }
fun KtFile.safeScript() = runReadAction { this.script }
inline fun KtFile.safeScript() = runReadAction { this.script }