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:
@@ -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
|
||||
Reference in New Issue
Block a user