[FIR] Inherit FIR with parameter renderer from the old parameter renderer

This commit is contained in:
Mikhail Glukhikh
2020-11-17 17:16:43 +03:00
parent 3dec848c03
commit c7ae176ae4
3 changed files with 7 additions and 15 deletions
@@ -203,6 +203,7 @@ abstract class AbstractFirDiagnosticsTest : AbstractFirBaseDiagnosticsTest() {
argument: () -> String,
): FirDiagnosticWithParameters1<FirSourceElement, String>? {
val sourceElement = element.source ?: return null
if (sourceElement.kind != FirRealSourceElementKind) return null
val name = name ?: return null
if (diagnosedRangesToDiagnosticNames[sourceElement.startOffset..sourceElement.endOffset]?.contains(name) != true) return null