Oh, sorry. I made this comment somewhere else. The problem is the endStatements() method doesn't use the regex to recognize the other declaration style.
In addition, I believe the current regex don't match the declaration emitted by the cross-linker. The dot in the name prevent a match. http://gwt-code-reviews.appspot.com/669801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors