mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
IDEA-355006 [spring] Data: support projections for Kotlin
GitOrigin-RevId: e0379d8d3ba26b7059290b34d8221cd9db682630
This commit is contained in:
committed by
intellij-monorepo-bot
parent
317e2b9aac
commit
fd398c899b
@@ -222,7 +222,7 @@ val DEFAULT_EXPRESSION_TYPES_LIST: Array<Class<out UExpression>> = arrayOf(UExpr
|
||||
fun getPossiblePsiSourceTypes(language: Language, vararg uastTypes: Class<out UElement>): ClassSet<PsiElement> =
|
||||
UastFacade.findPlugin(language)?.getPossiblePsiSourceTypes(*uastTypes) ?: emptyClassSet()
|
||||
|
||||
private fun getFirstUElement(psiElement: PsiElement, strict: Boolean = false): UElement? {
|
||||
fun getFirstUElement(psiElement: PsiElement, strict: Boolean = false): UElement? {
|
||||
val startingElement = if (strict) psiElement.parent else psiElement
|
||||
val parentSequence = generateSequence(startingElement, PsiElement::getParent)
|
||||
return parentSequence.mapNotNull { it.toUElement() }.firstOrNull()
|
||||
|
||||
Reference in New Issue
Block a user