Foso / MpApt

(Deprecated) :wrench: Kotlin Native/JS/JVM Annotation Processor library for Kotlin compiler plugins
Apache License 2.0
236 stars 12 forks source link

Expression annotations are only detected on function declarations- #19

Closed eiswind closed 4 years ago

eiswind commented 4 years ago

Thanx for this great idea!

Something I found out the hard way: getAnnotatedExpressions() is only being called on SimpleFunctionDescriptors.

so an annotated val or var like

val string = @ExpressionAnn "test"

simpy goes unnoticed.

eiswind commented 4 years ago

Seems to be invalid as it works with your example. Sorry