All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bennyhuo.kotlin.ir.printer.gradle.IrPrinterExtension.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0-1.1.4
Show newest version
package com.bennyhuo.kotlin.ir.printer.gradle

enum class OutputType {
    /**
     * Print IR declarations directly.
     * see [org.jetbrains.kotlin.ir.util.dump]
     */
    RAW_IR,

    /**
     * Use Kotlin builtin source printer.
     * see [org.jetbrains.kotlin.ir.util.dumpKotlinLike]
     */
    KOTLIN_LIKE,

    /**
     * Use the source printer from Jetpack Compose.
     * It looks better than the Kotlin builtin printer.
     */
    KOTLIN_LIKE_JETPACK_COMPOSE_STYLE
}

open class PrinterExtension {

    var isEnabled: Boolean = true
    var isLlvmIrEnabled: Boolean = true
    var indent: String = "  "
    var outputDir: String? = null
    var outputType: OutputType = OutputType.KOTLIN_LIKE_JETPACK_COMPOSE_STYLE

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy