FIR LC: introduce modifier list for members
to simulate `default` modifier of methods in interface
This commit is contained in:
committed by
Ilya Kirillov
parent
ec5c06238d
commit
aad02c1259
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user