Do not include annotations and KDoc into NO_EXPLICIT_VISIBILITY_IN_API_MODE report range

Rename positioning strategy to better reflect its behavior.
#KT-36021 fixed.
This commit is contained in:
Leonid Startsev
2020-01-22 16:39:18 +03:00
parent 4285c6045a
commit 43858e8169
9 changed files with 112 additions and 18 deletions
@@ -1,9 +1,19 @@
// SKIP_TXT
/**
* KDoc for Foo1
*/
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>class Foo1<!>() {}
public class Foo2() {
/**
* KDoc for method
*/
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>fun method<!>() {}
/**
* KDoc for method2
*/
public fun method2() {}
private fun method3() {}
@@ -12,6 +22,18 @@ public class Foo2() {
public fun implicit3(): Int = 10
}
public open class ClassWithOpen() {
/**
* KDoc for method
*/
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>fun method<!>() {}
/**
* KDoc for openMethod
*/
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>open fun openMethod<!>() {}
}
public data class FooData(val i: Int, val s: String)
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>data class FooData2<!>(val i: Int, val s: String)