Use the new type inference for top-level callable reference resolution
^KT-47797 Fixed ^KT-47987 Fixed ^KT-45034 Fixed ^KT-48446 Fixed ^KT-13934 Fixed
This commit is contained in:
@@ -511,3 +511,15 @@ fun PsiElement?.unwrapParenthesesLabelsAndAnnotations(): PsiElement? {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun PsiElement.unwrapParenthesesLabelsAndAnnotationsDeeply(): PsiElement {
|
||||
var current: PsiElement = this
|
||||
var unwrapped: PsiElement?
|
||||
|
||||
do {
|
||||
unwrapped = current.parent?.unwrapParenthesesLabelsAndAnnotations()
|
||||
current = current.parent
|
||||
} while (unwrapped != current)
|
||||
|
||||
return unwrapped
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user