KT-11425: convert !a.equals(b) to a != b
(cherry picked from commit 56c7786)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
2850a7898d
commit
f309021c9f
@@ -365,3 +365,5 @@ fun <E : PsiElement> E.createSmartPointer(): SmartPsiElementPointer<E> =
|
||||
|
||||
fun PsiElement.before(element: PsiElement) = textRange.endOffset <= element.textRange.startOffset
|
||||
|
||||
inline fun <reified T : PsiElement> PsiElement.getLastParentOfTypeInRow() = parents.takeWhile { it is T }.lastOrNull()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user