Adedd quickfix check if @PublishedApi stub already exists

This commit is contained in:
Mikhael Bogdanov
2016-12-19 16:51:24 +01:00
parent c38b55612b
commit 5222768ba1
8 changed files with 115 additions and 13 deletions
@@ -0,0 +1,16 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
open class ABase {
protected fun test(p: Int) {
}
inline fun test() {
{
<caret>test(1)
}()
}
@PublishedApi
internal fun `access$test`(p: Int) = test(p)
}
@@ -0,0 +1,16 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
open class ABase {
protected fun test(p: Int) {
}
inline fun test() {
{
`access$test`(1)
}()
}
@PublishedApi
internal fun `access$test`(p: Int) = test(p)
}
@@ -0,0 +1,18 @@
// "Replace with generated @PublishedApi bridge call '`access$prop`'" "true"
open class ABase {
protected var prop = 1
inline fun test() {
{
<caret>prop
}()
}
@PublishedApi
internal var `access$prop`: Int
get() = prop
set(value) {
prop = value
}
}
@@ -0,0 +1,18 @@
// "Replace with generated @PublishedApi bridge call '`access$prop`'" "true"
open class ABase {
protected var prop = 1
inline fun test() {
{
`access$prop`
}()
}
@PublishedApi
internal var `access$prop`: Int
get() = prop
set(value) {
prop = value
}
}
@@ -5,7 +5,7 @@ open class ABase {
@Z
protected var String.prop: Int
get() = 1
set(field) = {}
set(field) {}
inline fun test() {
@@ -1,11 +1,11 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
// "Replace with generated @PublishedApi bridge call '`access$prop`'" "true"
annotation class Z
open class ABase {
@Z
protected var String.prop: Int
get() = 1
set(field) = {}
set(field) {}
inline fun test() {