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

main.seskar.compiler.props.diagnostic.PropsMessagesExtension.kt Maven / Gradle / Ivy

There is a newer version: 3.75.0
Show newest version
package seskar.compiler.props.diagnostic

import org.jetbrains.kotlin.diagnostics.rendering.DefaultErrorMessages
import org.jetbrains.kotlin.diagnostics.rendering.DiagnosticFactoryToRendererMap

private val DIAGNOSTIC_FACTORY_TO_RENDERER by lazy {
    DiagnosticFactoryToRendererMap("seskar.props").apply {
        put(
            PropsErrors.NON_EXTERNAL_PROPS,
            "Non-external props are unsupported. Please add `external` modifier."
        )
    }
}

internal object PropsMessagesExtension : DefaultErrorMessages.Extension {
    override fun getMap(): DiagnosticFactoryToRendererMap =
        DIAGNOSTIC_FACTORY_TO_RENDERER
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy