Add "Copy concatenation text to clipboard" intention #KT-13744 Fixed

This commit is contained in:
shiraji
2016-09-22 17:28:42 +09:00
committed by Mikhail Glukhikh
parent 023c02deb3
commit 391a0fdde5
27 changed files with 297 additions and 0 deletions
@@ -0,0 +1 @@
"" + 1 + 1.1 + "foo"
@@ -0,0 +1 @@
11.1foo
+1
View File
@@ -0,0 +1 @@
"foo" + "bar"
@@ -0,0 +1 @@
foobar
@@ -0,0 +1 @@
"foo$foo$bar" + "${bar}${bar2()}bar"
@@ -0,0 +1 @@
foo????bar
@@ -0,0 +1 @@
"" + b<caret> + "foo"
@@ -0,0 +1 @@
?foo
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.intentions.copyConcatenatedStringToClipboard.CopyConcatenatedStringToClipboardIntention
@@ -0,0 +1,4 @@
// IS_APPLICABLE: true
// INTENTION_TEXT: Copy concatenation text to clipboard
val s = "" + 1<caret> + 1.1 + "foo"
@@ -0,0 +1,4 @@
// IS_APPLICABLE: true
// INTENTION_TEXT: Copy concatenation text to clipboard
val s = "" + 1 + 1.1 + "foo"
@@ -0,0 +1,3 @@
// IS_APPLICABLE: false
val foo = 1 + <caret>1
@@ -0,0 +1,4 @@
// IS_APPLICABLE: true
// INTENTION_TEXT: Copy concatenation text to clipboard
val foo = "foo"<caret> + "bar"
@@ -0,0 +1,4 @@
// IS_APPLICABLE: true
// INTENTION_TEXT: Copy concatenation text to clipboard
val foo = "foo" + "bar"
@@ -0,0 +1,3 @@
// IS_APPLICABLE: false
val foo = "foo"<caret>
@@ -0,0 +1,5 @@
// IS_APPLICABLE: true
// INTENTION_TEXT: Copy concatenation text to clipboard
val b = 100
val s = "" + b<caret> + "foo"
@@ -0,0 +1,5 @@
// IS_APPLICABLE: true
// INTENTION_TEXT: Copy concatenation text to clipboard
val b = 100
val s = "" + b + "foo"