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.
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.
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.

Please sign in to leave a comment.