matozoid/javaparser — pull request #8 by amorozov (2012-08-30 10:56:28+00:00)
Title: Support for comments inside different parts of 'if' statement

Currently comment support is somewhat incomplete.

For example, if a comment is placed somewhere between 'if' and 'else' statement it simply gets lost during the parse phase (before the comments patch such a comment went to the compilation unit 'comments' field). So this patch is a quick hack to support such comments for the particular case.

Probably we should decide how to _properly_ choose a "parent" node for a given comment and re-check the whole comments processing during parsing.

Signed-off-by: Alexey Morozov