[IR] Cleanup ir serialization

This commit is contained in:
Roman Artemev
2021-12-21 15:51:50 +03:00
committed by teamcity
parent 4babc30624
commit 7341a17a5d
117 changed files with 313 additions and 3783 deletions
@@ -5,15 +5,9 @@
package org.jetbrains.kotlin.ir.declarations
import org.jetbrains.kotlin.ir.IrElement
import org.jetbrains.kotlin.ir.expressions.IrBody
import org.jetbrains.kotlin.ir.util.IdSignature
open class StageController(open val currentStage: Int = 0) {
open fun lazyLower(declaration: IrDeclaration) {}
open fun lazyLower(body: IrBody) {}
open fun <T> withStage(stage: Int, fn: () -> T): T = fn()
open val bodiesEnabled: Boolean get() = true
@@ -24,8 +18,6 @@ open class StageController(open val currentStage: Int = 0) {
open fun <T> bodyLowering(fn: () -> T): T = fn()
open fun canModify(element: IrElement): Boolean = true
open fun <T> unrestrictDeclarationListsAccess(fn: () -> T): T = fn()
open fun canAccessDeclarationsOf(irClass: IrClass): Boolean = true