A few weeks ago I was implementing something in my framework that I needed reflection for it. As soon as I imported the reflection module and set the reflection filter for my module, syntax errors were shown because of unknown fields and stuff like that during build time. So basically after that, all unused functions/methods were syntax error free. What I noticed is that now all methods of a class are included in the build, even if you never call them. It this somehow avoidable or is it a prize you have to pay when you use reflection?
|