Highlighting visitor: make holder immutable
This commit is contained in:
@@ -23,7 +23,9 @@ import com.intellij.openapi.util.TextRange
|
|||||||
import com.intellij.psi.PsiElement
|
import com.intellij.psi.PsiElement
|
||||||
import org.jetbrains.kotlin.psi.KtVisitorVoid
|
import org.jetbrains.kotlin.psi.KtVisitorVoid
|
||||||
|
|
||||||
abstract class HighlightingVisitor protected constructor(private var holder: AnnotationHolder) : KtVisitorVoid() {
|
abstract class HighlightingVisitor protected constructor(
|
||||||
|
private val holder: AnnotationHolder
|
||||||
|
) : KtVisitorVoid() {
|
||||||
|
|
||||||
protected fun createInfoAnnotation(element: PsiElement, message: String? = null): Annotation =
|
protected fun createInfoAnnotation(element: PsiElement, message: String? = null): Annotation =
|
||||||
createInfoAnnotation(element.textRange, message)
|
createInfoAnnotation(element.textRange, message)
|
||||||
|
|||||||
Reference in New Issue
Block a user