[FIR][LightTree] Better expression identification

And some refactoring
Regenerate IDE parts
This commit is contained in:
Andrey Zinovyev
2021-04-19 20:20:28 +03:00
committed by TeamCityServer
parent 2f7d6da22f
commit 5fc1514104
6 changed files with 34 additions and 23 deletions
@@ -759,7 +759,7 @@ sealed class KtFirDiagnostic<PSI: PsiElement> : KtDiagnosticWithPsi<PSI> {
override val diagnosticClass get() = CyclicGenericUpperBound::class
}
abstract class DeprecatedTypeParameterSyntax : KtFirDiagnostic<KtTypeParameterList>() {
abstract class DeprecatedTypeParameterSyntax : KtFirDiagnostic<KtDeclaration>() {
override val diagnosticClass get() = DeprecatedTypeParameterSyntax::class
}
@@ -1228,7 +1228,7 @@ internal class CyclicGenericUpperBoundImpl(
internal class DeprecatedTypeParameterSyntaxImpl(
firDiagnostic: FirPsiDiagnostic<*>,
override val token: ValidityToken,
) : KtFirDiagnostic.DeprecatedTypeParameterSyntax(), KtAbstractFirDiagnostic<KtTypeParameterList> {
) : KtFirDiagnostic.DeprecatedTypeParameterSyntax(), KtAbstractFirDiagnostic<KtDeclaration> {
override val firDiagnostic: FirPsiDiagnostic<*> by weakRef(firDiagnostic)
}