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

org.jetbrains.kotlin.daemon.common.experimental.CompilerServicesFacadeBaseServerSide.kt Maven / Gradle / Ivy

/*
 * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
 * that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.daemon.common.experimental

import org.jetbrains.kotlin.daemon.common.CompilerServicesFacadeBaseAsync
import org.jetbrains.kotlin.daemon.common.experimental.socketInfrastructure.Server
import java.io.Serializable

interface CompilerServicesFacadeBaseServerSide : CompilerServicesFacadeBaseAsync, Server {

    class ReportMessage(
        val category: Int,
        val severity: Int,
        val message: String?,
        val attachment: Serializable?
    ) : Server.Message() {

        override suspend fun processImpl(server: CompilerServicesFacadeBaseServerSide, sendReply: (Any?) -> Unit) {
            server.report(category, severity, message, attachment)
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy