[IR] Restore old Psi2IrTranslator constructor for older IDEs

^KT-54115
^KT-53649
This commit is contained in:
Dmitriy Dolovov
2022-09-21 13:01:41 +02:00
parent 443f7d1048
commit c5d4619ebc
@@ -45,6 +45,12 @@ class Psi2IrTranslator(
val configuration: Psi2IrConfiguration,
private val checkNoUnboundSymbols: (SymbolTable, String) -> Unit
) {
@Deprecated("Only for backward compatibility with older versions of IDE", level = DeprecationLevel.ERROR)
constructor(
languageVersionSettings: LanguageVersionSettings,
configuration: Psi2IrConfiguration
) : this(languageVersionSettings, configuration, checkNoUnboundSymbols = { _, _ -> })
private val postprocessingSteps = SmartList<Psi2IrPostprocessingStep>()
fun addPostprocessingStep(step: Psi2IrPostprocessingStep) {