FIR: Introduce function to render fir element with it's type
This commit is contained in:
@@ -26,6 +26,11 @@ import org.jetbrains.kotlin.name.SpecialNames
|
|||||||
import org.jetbrains.kotlin.types.Variance
|
import org.jetbrains.kotlin.types.Variance
|
||||||
import org.jetbrains.kotlin.utils.Printer
|
import org.jetbrains.kotlin.utils.Printer
|
||||||
|
|
||||||
|
fun FirElement.renderWithType(): String = buildString {
|
||||||
|
append(this@renderWithType)
|
||||||
|
append(": ")
|
||||||
|
this@renderWithType.accept(FirRenderer(this))
|
||||||
|
}
|
||||||
fun FirElement.render(): String = buildString { this@render.accept(FirRenderer(this)) }
|
fun FirElement.render(): String = buildString { this@render.accept(FirRenderer(this)) }
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user