[kotlin] KTIJ-38334 Mark findContextToAnalyze as deprecated and scheduled for removal

(cherry picked from commit c92807a5258eee6517f505ff21a380e4618fbfaa)

IJ-CR-212042

GitOrigin-RevId: d49276b1f93784af5a2f62df28dda4f544d66c2a
This commit is contained in:
Andrey Cherkasov
2026-07-16 07:54:29 +00:00
committed by intellij-monorepo-bot
parent 66059400c4
commit fb9886e7e8
@@ -17,6 +17,11 @@ import org.jetbrains.kotlin.psi.psiUtil.parentsWithSelf
* Finds the nearest enclosing declaration that can be used as a context for a code fragment built from [this] expression.
*/
@ApiStatus.Internal
@Deprecated(
message = "Temporary workaround. Do not use.",
level = DeprecationLevel.WARNING,
)
@ApiStatus.ScheduledForRemoval
fun KtExpression.findContextToAnalyze(): KtExpression? {
for (element in parentsWithSelf) {
when (element) {