Renamed some intentions + test data dirs
This commit is contained in:
@@ -551,12 +551,12 @@
|
|||||||
</intentionAction>
|
</intentionAction>
|
||||||
|
|
||||||
<intentionAction>
|
<intentionAction>
|
||||||
<className>org.jetbrains.kotlin.idea.intentions.conventionNameCalls.ReplaceUnaryPrefixIntention</className>
|
<className>org.jetbrains.kotlin.idea.intentions.conventionNameCalls.ReplaceCallWithUnaryOperatorIntention</className>
|
||||||
<category>Kotlin</category>
|
<category>Kotlin</category>
|
||||||
</intentionAction>
|
</intentionAction>
|
||||||
|
|
||||||
<intentionAction>
|
<intentionAction>
|
||||||
<className>org.jetbrains.kotlin.idea.intentions.conventionNameCalls.ReplaceBinaryInfixIntention</className>
|
<className>org.jetbrains.kotlin.idea.intentions.conventionNameCalls.ReplaceCallWithBinaryOperatorIntention</className>
|
||||||
<category>Kotlin</category>
|
<category>Kotlin</category>
|
||||||
</intentionAction>
|
</intentionAction>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ import org.jetbrains.kotlin.psi.JetPsiFactory
|
|||||||
import org.jetbrains.kotlin.psi.createExpressionByPattern
|
import org.jetbrains.kotlin.psi.createExpressionByPattern
|
||||||
import org.jetbrains.kotlin.resolve.calls.model.ArgumentMatch
|
import org.jetbrains.kotlin.resolve.calls.model.ArgumentMatch
|
||||||
|
|
||||||
public class ReplaceBinaryInfixIntention : JetSelfTargetingOffsetIndependentIntention<JetDotQualifiedExpression>(javaClass(), "Replace call with binary operator") {
|
public class ReplaceCallWithBinaryOperatorIntention : JetSelfTargetingOffsetIndependentIntention<JetDotQualifiedExpression>(javaClass(), "Replace call with binary operator") {
|
||||||
override fun isApplicableTo(element: JetDotQualifiedExpression): Boolean {
|
override fun isApplicableTo(element: JetDotQualifiedExpression): Boolean {
|
||||||
val operation = operation(element.functionName) ?: return false
|
val operation = operation(element.functionName) ?: return false
|
||||||
val resolvedCall = element.toResolvedCall() ?: return false
|
val resolvedCall = element.toResolvedCall() ?: return false
|
||||||
+1
-1
@@ -24,7 +24,7 @@ import org.jetbrains.kotlin.psi.JetDotQualifiedExpression
|
|||||||
import org.jetbrains.kotlin.psi.JetPsiFactory
|
import org.jetbrains.kotlin.psi.JetPsiFactory
|
||||||
import org.jetbrains.kotlin.psi.createExpressionByPattern
|
import org.jetbrains.kotlin.psi.createExpressionByPattern
|
||||||
|
|
||||||
public class ReplaceUnaryPrefixIntention : JetSelfTargetingOffsetIndependentIntention<JetDotQualifiedExpression>(javaClass(), "Replace call with unary operator") {
|
public class ReplaceCallWithUnaryOperatorIntention : JetSelfTargetingOffsetIndependentIntention<JetDotQualifiedExpression>(javaClass(), "Replace call with unary operator") {
|
||||||
override fun isApplicableTo(element: JetDotQualifiedExpression): Boolean {
|
override fun isApplicableTo(element: JetDotQualifiedExpression): Boolean {
|
||||||
val operation = operation(element.functionName) ?: return false
|
val operation = operation(element.functionName) ?: return false
|
||||||
val call = element.callExpression ?: return false
|
val call = element.callExpression ?: return false
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
org.jetbrains.kotlin.idea.intentions.conventionNameCalls.ReplaceUnaryPrefixIntention
|
org.jetbrains.kotlin.idea.intentions.conventionNameCalls.ReplaceCallWithBinaryOperatorIntention
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
org.jetbrains.kotlin.idea.intentions.conventionNameCalls.ReplaceBinaryInfixIntention
|
org.jetbrains.kotlin.idea.intentions.conventionNameCalls.ReplaceCallWithUnaryOperatorIntention
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user