[Fix #1310] Treat module_function as an access modifier