Add base declaration checker for fun interfaces

This commit is contained in:
Mikhail Zarechenskiy
2020-02-04 17:41:30 +03:00
parent 6735cc8937
commit 45bbdaf73f
11 changed files with 505 additions and 1 deletions
@@ -40,6 +40,8 @@ open class KtClass : KtClassOrObject {
fun getClassOrInterfaceKeyword(): PsiElement? = findChildByType(TokenSet.create(KtTokens.CLASS_KEYWORD, KtTokens.INTERFACE_KEYWORD))
fun getClassKeyword(): PsiElement? = findChildByType(KtTokens.CLASS_KEYWORD)
fun getFunKeyword(): PsiElement? = modifierList?.getModifier(KtTokens.FUN_KEYWORD)
}
fun KtClass.createPrimaryConstructorIfAbsent(): KtPrimaryConstructor {