Open GoogleCodeExporter opened 9 years ago
The bug is probably in ASTParserTokenManager at line 68,69
only the last comment in special token is added into comments.
This is what I tried to fix (replace line 68-69):
Token firstToken = null;
while (special != null) {
firstToken = special;
special = special.specialToken;
}
while (firstToken != null) {
BlockComment comment = new BlockComment(firstToken
.beginLine, firstToken.beginColumn, firstToken.endLine, firstToken.endColumn, firstToken.image.substring(2, firstToken.image.length()-2));
comments.add(comment);
firstToken = firstToken.next;
}
Original comment by lylypp6...@gmail.com
on 26 Nov 2014 at 8:31
Original issue reported on code.google.com by
longhua1...@gmail.com
on 28 Jun 2011 at 10:26