lines.addAll(cComments.keySet());
for (Integer lineNo : lines) {
final String line = getLines()[lineNo.intValue() - 1];
String lineBefore = "";
TextBlock comment = null;
if (cppComments.containsKey(lineNo)) {
comment = cppComments.get(lineNo);
lineBefore = line.substring(0, comment.getStartColNo());
}
else if (cComments.containsKey(lineNo)) {
final List<TextBlock> commentList = cComments.get(lineNo);
comment = commentList.get(commentList.size() - 1);
lineBefore = line.substring(0, comment.getStartColNo());
if (comment.getText().length == 1) {
final String lineAfter =
line.substring(comment.getEndColNo() + 1).trim();
if (!"".equals(lineAfter)) {
// do not check comment which doesn't end line
continue;
}
}