elihart
10/29/2021, 8:03 PMgetSymbolsWithAnnotation
.elihart
10/29/2021, 8:03 PMJiaxiang
10/29/2021, 8:03 PMelihart
10/29/2021, 8:04 PMelihart
10/29/2021, 8:04 PMJiaxiang
10/29/2021, 8:04 PMJiaxiang
10/29/2021, 8:05 PMJiaxiang
10/29/2021, 8:06 PMelihart
10/29/2021, 8:07 PMgetSymbolsWithAnnotation
.
The class has some error types elsewhere, so I defer it, but then in the next round I can no longer look up the properties.
The workaround I believe is to not use getSymbolsWithAnnotation
to get annotated symbols within an annotated class, but instead iterate through it with a visitor or other pattern. That should be fine, but many javac processors don’t do this so a direct port may not work (if they have to defer)Jiaxiang
10/29/2021, 8:10 PMJiaxiang
10/29/2021, 8:13 PMelihart
10/29/2021, 8:16 PMelihart
10/29/2021, 8:17 PMJiaxiang
10/29/2021, 8:20 PMelihart
10/29/2021, 8:25 PMTo avoid unnecessary reprocessing of symbols, getSymbolsAnnotatedWith returns only those symbols found in newly generated files.
which seemed like a mistake since I realized deferred symbols do get returned again by getSymbolsAnnotatedWith in some casesJiaxiang
10/29/2021, 8:26 PMelihart
10/29/2021, 8:27 PMgetSymbolsWithAnnotation
in the source itself with these details