Implement "Remove redundant '.let' call" binary operator support #KT-14396 Fixed

This commit is contained in:
shiraji
2016-10-28 14:45:56 +09:00
committed by Mikhail Glukhikh
parent ce72337ebd
commit a662d777e8
16 changed files with 208 additions and 12 deletions
@@ -78,6 +78,9 @@ class KtPsiFactory(private val project: Project) {
return if (expression.text == text) expression else null
}
fun createThisExpression() =
(createExpression("this.x") as KtQualifiedExpression).receiverExpression as KtThisExpression
fun createClassLiteral(className: String): KtClassLiteralExpression =
createExpression("$className::class") as KtClassLiteralExpression