FIR IDE: Enable add accessor intentions in plugin.

This commit is contained in:
Mark Punzalan
2021-06-09 08:36:54 +00:00
committed by TeamCityServer
parent 4f12966d66
commit a497dd1d31
18 changed files with 576 additions and 189 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.fir.intentions.HLAddGetterAndSetterIntention
@@ -0,0 +1,6 @@
// SKIP_ERRORS_BEFORE
// SKIP_ERRORS_AFTER
// IS_APPLICABLE: false
expect class Header {
var <caret>x: Int
}
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.fir.intentions.HLAddGetterIntention
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
class Test {
const val x<caret> = 1
}
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.fir.intentions.HLAddSetterIntention
@@ -0,0 +1,6 @@
// SKIP_ERRORS_BEFORE
// SKIP_ERRORS_AFTER
// IS_APPLICABLE: false
expect class Header {
var <caret>x: Int
}
@@ -4,5 +4,4 @@ class Test {
get() {
return 1
}
}
/* IGNORE_FIR */
}
@@ -5,5 +5,4 @@ class Test {
return 1
}
set(value) {<caret>}
}
/* IGNORE_FIR */
}
@@ -3,5 +3,4 @@
class Test {
var x: Int<caret>
set(value) {}
}
/* IGNORE_FIR */
}
@@ -6,5 +6,4 @@ class Test {
<caret>TODO()
}
set(value) {}
}
/* IGNORE_FIR */
}