Added ifThenToSafeAccessIntention

This commit is contained in:
Zack Grannan
2014-03-02 17:48:45 -08:00
committed by Zalim Bashorov
parent 1f720c8559
commit 3862a3b5bc
56 changed files with 558 additions and 0 deletions
@@ -0,0 +1 @@
val result = maybeSomething?.perform(something)
@@ -0,0 +1 @@
val result = if (maybeSomething != null) maybeSomething.perform(something) else null
@@ -0,0 +1,5 @@
<html>
<body>
Converts an if-then expression to an expression that uses a safe-access operator (if applicable)
</body>
</html>