I debugged the _processFunctionStatement function and found out the reason for not detecting private function is the use of checkNextToken instead of checkNextValidToken. This caused whitespace to be the name of a private function instead of the real name if there is a space between function name and the open parenthesis. This fix solves the issue.
I debugged the _processFunctionStatement function and found out the reason for not detecting private function is the use of checkNextToken instead of checkNextValidToken. This caused whitespace to be the name of a private function instead of the real name if there is a space between function name and the open parenthesis. This fix solves the issue.