[FIR] Turn some checkers into classes to prevent memory leaks

This is temporary solution until those checkers will be fixed
#KT-46058
This commit is contained in:
Dmitriy Novozhilov
2021-04-14 13:24:35 +03:00
parent 085bddbfc0
commit dd96c3b56e
4 changed files with 7 additions and 7 deletions
@@ -45,7 +45,7 @@ object CommonDeclarationCheckers : DeclarationCheckers() {
override val propertyCheckers: Set<FirPropertyChecker>
get() = setOf(
FirInapplicableLateinitChecker,
FirInapplicableLateinitChecker(),
FirDestructuringDeclarationChecker,
FirConstPropertyChecker,
FirPropertyAccessorChecker,
@@ -72,14 +72,14 @@ object CommonDeclarationCheckers : DeclarationCheckers() {
FirInterfaceWithSuperclassChecker,
FirLocalEntityNotAllowedChecker,
FirManyCompanionObjectsChecker,
FirMethodOfAnyImplementedInInterfaceChecker,
FirMethodOfAnyImplementedInInterfaceChecker(),
FirDataClassPrimaryConstructorChecker,
FirPrimaryConstructorSuperTypeChecker,
FirTypeParametersInObjectChecker,
FirMemberFunctionsChecker,
FirMemberPropertiesChecker,
FirNestedClassChecker,
FirInlineClassDeclarationChecker,
FirInlineClassDeclarationChecker(),
)
override val constructorCheckers: Set<FirConstructorChecker>