Improve the performance and fix getting method name
The regex used for getting function name improved
Merge branch 'anonymouse-method-fix'