IModule paramater of getCompileTimeConstantValue in Expression

I've recognized that the method getCompileTimeConstantValue in Expressions behavior expects an argument of type IModule. What should this parameter be used for? All methods, I've found, which overwrite the method don't use it. I want to use the method inside a replacement rules condition and have no idea where to get from.
0
2 comments
Avatar
Permanently deleted user
The argument is ridiculous and should have been removed. Initially, the reason to add IModule was to be able to evaluate more types of expressions by loading classes from the module. The idea is obviously broken, because there is no guarantee that module is compiled by the moment..... Pass a null there.
0
Avatar
Permanently deleted user
Thanks for this answer, Evgeny!
Perhaps you have also one for my new question a different thread, which is a bit related to this question.
0

Please sign in to leave a comment.