Create From Usage: Create class by reference expression

This commit is contained in:
Alexey Sedunov
2014-11-06 21:19:33 +03:00
parent 1f14d93412
commit b8f68acdbb
76 changed files with 1072 additions and 36 deletions
@@ -376,3 +376,5 @@ public fun PsiElement.nextLeafSkipWhitespacesAndComments(): PsiElement? {
return leaf
}
public fun JetExpression.isDotReceiver(): Boolean =
(getParent() as? JetDotQualifiedExpression)?.getReceiverExpression() == this