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

cc.unitmesh.core.intelli.CommentService.kt Maven / Gradle / Ivy

package cc.unitmesh.core.intelli

import cc.unitmesh.language.LanguageService;

class CommentService {
    private val langService = LanguageService();

    fun lineComment(lang: String): String {
        return langService.guessLineComment(lang) ?: "//"
    }

    companion object {
        private var instance: CommentService? = null
        fun getInstance(): CommentService {
            if (instance == null) {
                instance = CommentService()
            }
            return instance!!
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy