FIR IDE: use KtAnalysisSession as receiver
This commit is contained in:
@@ -30,7 +30,7 @@ class KotlinFirPsiChecker : AbstractKotlinPsiChecker() {
|
|||||||
throw ProcessCanceledException()
|
throw ProcessCanceledException()
|
||||||
}
|
}
|
||||||
analyze(element) {
|
analyze(element) {
|
||||||
highlightDiagnostics(element, this, holder)
|
this.highlightDiagnostics(element, holder)
|
||||||
|
|
||||||
FirAfterResolveHighlightingVisitor
|
FirAfterResolveHighlightingVisitor
|
||||||
.createListOfVisitors(this, holder)
|
.createListOfVisitors(this, holder)
|
||||||
@@ -38,7 +38,7 @@ class KotlinFirPsiChecker : AbstractKotlinPsiChecker() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun highlightDiagnostics(element: KtElement, analysisSession: KtAnalysisSession, holder: AnnotationHolder) = with(analysisSession) {
|
private fun KtAnalysisSession.highlightDiagnostics(element: KtElement, holder: AnnotationHolder) {
|
||||||
val diagnostics = element.getDiagnostics()
|
val diagnostics = element.getDiagnostics()
|
||||||
if (diagnostics.isEmpty()) return
|
if (diagnostics.isEmpty()) return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user