FIR, Serialization: fix FirSerializationPluginClassChecker after DiagnosticsReporter refactoring related to reporting diagnostic on null source

This commit is contained in:
Kirill Rakhman
2023-01-05 17:10:08 +01:00
committed by Space Team
parent 69f2e8826a
commit 1b016d0bce
@@ -248,7 +248,9 @@ object FirSerializationPluginClassChecker : FirClassChecker() {
}
if (with(session) { classSymbol.serializableAnnotationIsUseless }) {
reporter.reportOn(classSymbol.serializableOrMetaAnnotationSource, FirSerializationErrors.SERIALIZABLE_ANNOTATION_IGNORED)
classSymbol.serializableOrMetaAnnotationSource?.let {
reporter.reportOn(it, FirSerializationErrors.SERIALIZABLE_ANNOTATION_IGNORED)
}
return false
}