Add intentions to convert lazy <--> ordinary property
#KT-23501 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a2205cfc98
commit
fbd992f8c7
@@ -1663,6 +1663,16 @@
|
||||
<category>Kotlin</category>
|
||||
</intentionAction>
|
||||
|
||||
<intentionAction>
|
||||
<className>org.jetbrains.kotlin.idea.intentions.ConvertOrdinaryPropertyToLazyIntention</className>
|
||||
<category>Kotlin</category>
|
||||
</intentionAction>
|
||||
|
||||
<intentionAction>
|
||||
<className>org.jetbrains.kotlin.idea.intentions.ConvertLazyPropertyToOrdinaryIntention</className>
|
||||
<category>Kotlin</category>
|
||||
</intentionAction>
|
||||
|
||||
<lang.inspectionSuppressor language="kotlin" implementationClass="org.jetbrains.kotlin.idea.inspections.KotlinInspectionSuppressor"/>
|
||||
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.intentions.ObjectLiteralToLambdaInspection"
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
val x: String = "Hello"
|
||||
+1
@@ -0,0 +1 @@
|
||||
val x: String by lazy { "Hello" }
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts a lazy property / variable to an ordinary property / variable.
|
||||
</body>
|
||||
</html>
|
||||
+1
@@ -0,0 +1 @@
|
||||
val x: String by lazy { "Hello" }
|
||||
+1
@@ -0,0 +1 @@
|
||||
val x: String = "Hello"
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts a ordinary property / variable to a lazy property / variable.
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user