tschuchort
10/10/2018, 10:26 AMElements.Origin.MANDATED
or EXPLICIT
like the generated synthetic methods with $annotations
suffix? That would make it possible to process annotations on top-level properties and type aliases in files with @JvmMultifileClass
annotation.
In order to process annotations on properties or type aliases you need to get ahold of the propertyName$annotations()V
method but for multifile class parts this element is in the synthetic FacadeNameKt__FileNameKt
class. Since the class is synthetic it is never loaded by the annotation processor and can not be accessed, even if you know the name from parsing the facade class' @Metadata
annotationudalov
$annotations
methods to the facade since that’s where they should be semantically. (However, I think we can only do that in 1.5.)tschuchort
10/15/2018, 12:54 PMudalov
tschuchort
10/17/2018, 11:21 AM