FIR LC: introduce modifier list for members

to simulate `default` modifier of methods in interface
This commit is contained in:
Jinseong Jeon
2021-09-23 12:04:46 -07:00
committed by Ilya Kirillov
parent ec5c06238d
commit aad02c1259
9 changed files with 60 additions and 9 deletions
@@ -107,7 +107,7 @@ private class KtLightMemberModifierList(
}
override fun hasExplicitModifier(name: String) =
// kotlin methods can't be truly default atm, that way we can avoid being reported on by diagnostics, namely android lint
// Kotlin methods can't be truly default atm, that way we can avoid being reported on by diagnostics, namely UAST
if (name == PsiModifier.DEFAULT) false else super.hasExplicitModifier(name)
private fun isMethodOverride() = owner is KtLightMethod && owner.kotlinOrigin?.hasModifier(KtTokens.OVERRIDE_KEYWORD) ?: false