[FE 1.0] Resolve setters through the new type inference infra

^KT-48961 In progress
This commit is contained in:
Victor Petukhov
2022-06-02 11:07:54 +02:00
committed by teamcity
parent a74c221729
commit 6e191147b9
12 changed files with 70 additions and 58 deletions
@@ -95,6 +95,7 @@ fun PsiElement.nextLeaf(filter: (PsiElement) -> Boolean): PsiElement? {
return leaf
}
@SafeVarargs
fun <T : PsiElement> PsiElement.getParentOfTypes(strict: Boolean = false, vararg parentClasses: Class<out T>): T? {
return getParentOfTypesAndPredicate(strict, *parentClasses) { true }
}