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:
Yan Zhulanow
2017-11-02 12:26:31 +09:00
parent fd84ecda54
commit 6ca5787799
7 changed files with 60 additions and 4 deletions
@@ -19,6 +19,7 @@ package kotlinx.kapt
/**
* Declaration annotated with [KaptIgnored] would not be included in stubs passed to annotation processors.
*/
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.FIELD)
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.FIELD,
AnnotationTarget.PROPERTY, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
@Retention(AnnotationRetention.SOURCE)
public annotation class KaptIgnored