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
@@ -0,0 +1,45 @@
// SKIP_TXT
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>annotation class A<!>
@Target(
AnnotationTarget.CLASS,
AnnotationTarget.PROPERTY,
AnnotationTarget.CONSTRUCTOR,
AnnotationTarget.FUNCTION
)
public annotation class B
/**
* Foo1 KDoc
*/
@B
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>class Foo1<!>() {}
public class Foo2() {
/**
* KDoc for methodWithAnnotations
*/
@B
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>fun methodWithAnnotations<!>() {}
/**
* Property KDoc
*/
@B
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>var simple<!>: Int = 10
}
public open class ClassWithOpen {
/**
* constructor KDoc
*/
@B
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>constructor<!>() {}
/**
* KDoc for openAnnotatedMethod
*/
@B
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>open fun openAnnotatedMethod<!>() {}
}