[AA LC] Make top-level functions static final

This commit is contained in:
Dmitriy Novozhilov
2022-08-12 14:20:59 +03:00
parent 7e24ddeb40
commit 573b292cbc
11 changed files with 96 additions and 137 deletions
@@ -90,6 +90,13 @@ internal fun KtSymbolWithModality.computeModalityForMethod(
}
if (isTopLevel) {
result.add(PsiModifier.STATIC)
val needFinalModifier = when (this) {
is KtPropertySymbol -> isDelegatedProperty || isVal
else -> true
}
if (needFinalModifier) {
result.add(PsiModifier.FINAL)
}
}
}