Split SpecifyTypeExplicitly intention into two + refactored them completely

This commit is contained in:
Valentin Kipyatkov
2015-05-05 14:45:52 +03:00
parent d956d31012
commit 2d90ee5cad
25 changed files with 251 additions and 215 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.intentions.RemoveExplicitTypeIntention
@@ -1 +1 @@
org.jetbrains.kotlin.idea.intentions.SpecifyTypeExplicitlyAction
org.jetbrains.kotlin.idea.intentions.SpecifyTypeExplicitlyIntention
@@ -1 +1,2 @@
// IS_APPLICABLE: false
val x<caret> : String = ""
@@ -1 +0,0 @@
val x = ""
@@ -1,4 +1,5 @@
// "Create class 'A'" "false"
// ACTION: Convert to block body
// ACTION: Remove explicit type specification
// ERROR: Unresolved reference: A
fun foo(): J.<caret>A = throw Throwable("")
@@ -1,5 +1,6 @@
// "Create enum constant 'A'" "false"
// ACTION: Convert to block body
// ACTION: Remove explicit type specification
// ACTION: Create annotation 'A'
// ACTION: Create class 'A'
// ACTION: Create enum 'A'