Implement common Diagnostic(Factory/Renderer) in related FIR classes
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ class AnnotationPresentationInfo(
|
||||
|
||||
if (fixes.isEmpty()) {
|
||||
// if there are no quick fixes we need to register an EmptyIntentionAction to enable 'suppress' actions
|
||||
annotation.newFix(EmptyIntentionAction(diagnostic.factory.name)).registerFix()
|
||||
annotation.newFix(EmptyIntentionAction(diagnostic.factory.name!!)).registerFix()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ class KotlinSuppressableWarningProblemGroup(
|
||||
}
|
||||
|
||||
fun createSuppressWarningActions(element: PsiElement, diagnosticFactory: DiagnosticFactory<*>): List<SuppressIntentionAction> =
|
||||
createSuppressWarningActions(element, diagnosticFactory.severity, diagnosticFactory.name)
|
||||
createSuppressWarningActions(element, diagnosticFactory.severity, diagnosticFactory.name!!)
|
||||
|
||||
|
||||
fun createSuppressWarningActions(element: PsiElement, severity: Severity, suppressionKey: String): List<SuppressIntentionAction> {
|
||||
|
||||
Reference in New Issue
Block a user