Create from Usage: Add commas after enum entries

#KT-10800 Fixed
This commit is contained in:
Alexey Sedunov
2016-01-27 17:12:39 +03:00
parent 26c47cda47
commit 99e4c8c06d
9 changed files with 88 additions and 11 deletions
@@ -142,6 +142,8 @@ fun PsiElement.getNextSiblingIgnoringWhitespaceAndComments(): PsiElement? {
inline fun <reified T : PsiElement> T.nextSiblingOfSameType() = PsiTreeUtil.getNextSiblingOfType(this, T::class.java)
inline fun <reified T : PsiElement> T.prevSiblingOfSameType() = PsiTreeUtil.getPrevSiblingOfType(this, T::class.java)
fun PsiElement?.isAncestor(element: PsiElement, strict: Boolean = false): Boolean {
return PsiTreeUtil.isAncestor(this, element, strict)
}