main.seskar.compiler.props.diagnostic.PropsMessagesExtension.kt Maven / Gradle / Ivy
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