[FE] Move @PrivateForInline optIn into :core:compiler.common

This is needed to be able to use it in backend modules too
This commit is contained in:
Dmitriy Novozhilov
2023-07-12 11:37:03 +03:00
committed by Space Team
parent 49a1dfa20e
commit 73b580572b
35 changed files with 52 additions and 36 deletions
@@ -10,7 +10,7 @@ import com.intellij.psi.PsiElement
import com.intellij.psi.PsiWhiteSpace
import org.jetbrains.kotlin.analysis.test.framework.project.structure.ktModuleProvider
import org.jetbrains.kotlin.analysis.utils.printer.parentOfType
import org.jetbrains.kotlin.fir.PrivateForInline
import org.jetbrains.kotlin.util.PrivateForInline
import org.jetbrains.kotlin.psi.KtElement
import org.jetbrains.kotlin.psi.KtFile
import org.jetbrains.kotlin.psi.psiUtil.collectDescendantsOfType
@@ -195,4 +195,4 @@ class CaretProvider {
val TestServices.expressionMarkerProvider: ExpressionMarkerProvider by TestServices.testServiceAccessor()
fun String.indexOfOrNull(substring: String) =
indexOf(substring).takeIf { it >= 0 }
indexOf(substring).takeIf { it >= 0 }