Kapt: Allow to ignore specific methods/fields from being put into kapt stubs
Classes can't be ignored yet as it requires to ignore also all type usages which is a non-trivial operation.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import kotlinx.kapt.*
|
||||
|
||||
class Test {
|
||||
@KaptIgnored
|
||||
fun ignoredFun() {}
|
||||
|
||||
@KaptIgnored @get:KaptIgnored
|
||||
val ignoredProperty: String = ""
|
||||
|
||||
fun nonIgnoredFun() {}
|
||||
|
||||
val nonIgnoredProperty: String = ""
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
@kotlin.Metadata()
|
||||
public final class Test {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String nonIgnoredProperty = "";
|
||||
|
||||
public final void nonIgnoredFun() {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getNonIgnoredProperty() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user