Incremental KAPT - track constants usage

This commit adds support for tracking of used constants in
source files. For every constant used in a source file, class
that defines the constant and the constant name are tracked.

Value of the constant can be obtained using
annotation processing APIs, so if the constant value changes, a source file
using it has to be reprocessed.

 #KT-23880
This commit is contained in:
Ivan Gavrilovic
2019-03-21 11:29:41 +00:00
committed by Alexey Tsvetkov
parent 57dca2ada5
commit 0c09f56118
13 changed files with 212 additions and 17 deletions
@@ -0,0 +1,5 @@
package test;
public @interface AnnotationA {
int value() default (B.INT_VALUE + B.INT_VALUE) ;
}