Skip explicit API inspection for data class properties and add inspection for public API in interfaces

Add tests for almost all the cases
This commit is contained in:
Leonid Startsev
2019-10-14 20:20:48 +03:00
parent ebb7e434c8
commit 5ab262c977
20 changed files with 426 additions and 5 deletions
@@ -0,0 +1,18 @@
public class Foo(<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>val bar: Int<!>, private var bar2: String, internal var bar3: Long, public var bar4: Int) {
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>var simple: Int<!> = 10
public var simple2: Int = 10
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>val withGetter: Int<!>
get() = 10
public val withGetter2: Int
get() = 10
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>var getterAndSetter: Int<!> = 10
get() = field
set(v) { field = v }
public var getterAndSetter2: Int = 10
get() = field
set(v) { field = v }
}