Introduce Variable: Allow choosing extraction scope for expressions in the lambda body

#KT-7720 Fixed
This commit is contained in:
Alexey Sedunov
2015-11-13 15:06:34 +03:00
parent 70049171cd
commit 5889971d62
25 changed files with 334 additions and 16 deletions
@@ -421,4 +421,6 @@ public fun KtExpression.getOutermostParenthesizerOrThis(): KtExpression {
else -> true
}
}?.first as KtExpression? ?: this
}
}
public fun PsiElement.isFunctionalExpression(): Boolean = this is KtNamedFunction && nameIdentifier == null